[Buildroot] Read only rootfs with writable (aufs) overlay

Peter Korsgaard peter at korsgaard.com
Mon Feb 19 22:13:41 UTC 2018


>>>>> "Alex" == Alex Hildebrand <alexander.hildebrand at googlemail.com> writes:

 > So switch_root does not work when used without an initramfs?

Correct. switch_root is specific to initramfs. See the description at
the bottom of switch_root.c:

https://git.buildroot.net/busybox/tree/util-linux/switch_root.c


 > Tried it directly from my read only rootfs but it does not change the
 > root...  Is this the same with in-kernel overlayfs?

Yes, this is independent of the overlay fs implementation. If you only
want to add the overlay to a subset of the tree (E.G /etc), then you can
do it from your rootfs, but not when you want to replace /.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list