Moessbauer, Felix
unread,Jul 5, 2022, 9:40:57 AM7/5/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gylstorff, Quirin, Anton Mikanovich, isar-...@googlegroups.com, jan.k...@siemens.com, Bezdeka, Florian, ub...@ilbers.de, Schmidt, Adriaan
I don't know if this has been discussed, but personally I tried multiple:
- schroot: That's what we currently use (base fs layer + overlay per sbuild invocation)
- sudo: similar to "sudo chroot ...". This suffers from the same problems as the previous ISAR implementation of the global buildchroot
- unshare: That's the best (IMO), but the feature-support heavily depends on the host-system. Issues are around missing /dev/pts, binfmt, broken pkg-autotest
Apart from that, two additional things have to be considered as well:
Mem usage: I personally run sbuild with unshare backend on a tmpfs, but depending on the package this requires gigabytes of RAM. In ISAR, the builds run in parallel, hence it does not really scale.
Disk usage: Having multiple full-blown chroots requires a lot of disk space. That's why the basic build infrastructure is put into the lower-dir of the overlayfs, while only the per-package build-dependencies are installed into the upper.
I hope this clarifies some of the design decisions, although they have not been made by me 😉
Felix
>
> Also as we generate the schroot configuration can we disable the overlay
> usage[2]?
No, this is not possible (at least it is not implemented).
Felix
>
>
> [1]:
>
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmanpage
>
s.debian.org%2Fbullseye%2Fsbuild%2Fsbuild.1.en.html&data=05%7C01%7
> Cfelix.moessbauer%
40siemens.com%7Cd2f153a84cc84974391408da5b73840c
> %7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C63792284893296229
> 8%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJ
> BTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QoQWuM8
> dI2drew1QAKnLXSIFWmKA5baR1PuiZ%2FF73MQ%3D&reserved=0
> [2]:
>
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmanpage
>
s.debian.org%2Fbullseye%2Fschroot%2Fschroot.conf.5.en.html%23Filesystem_
> Union_chroot_options&data=05%7C01%7Cfelix.moessbauer%40siemens.c
> om%7Cd2f153a84cc84974391408da5b73840c%7C38ae3bcd95794fd4addab42e
> 1495d55a%7C1%7C0%7C637922848932962298%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D
> %7C3000%7C%7C%7C&sdata=1%2BcWUkyDvXEn20dGcIE5%2F0qn2AK4RA
> Dx%2F03QUUjh%2Fiw%3D&reserved=0
>
> Quirin