Read only rootfs with writable (aufs) overlay
Hi there,
Does anyone of you have experience with a rootfs with a writable (aufs) overlay?
I managed to compile aufs and mount a folder combining the read only rootfs with a read write data overlay. How to switch the rootfs to this mount point? Tried to move the mount point to this folder in the inittab, but this fails with "Too many levels of symbolic links" -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180219/2ef7ac4f/attachment.html>
Hi Alex,
Quoted 10 lines · Alex Hildebrand
Hi there,
Does anyone of you have experience with a rootfs with a writable (aufs) overlay?
I managed to compile aufs and mount a folder combining the read only rootfs with a read write data overlay. How to switch the rootfs to this mount point? Tried to move the mount point to this folder in the inittab, but this fails with "Too many levels of symbolic links"
I'm not sure I understand the question fully. Are you saying you want the entire filesystem to be in the aufs? Why not use a RW filesystem instead?
Quoted 5 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 7 lines
Bryce Ferguson Software Engineer Airborne Information Solutions \ RC Linux Platform 400 Collins Rd NE Cedar Rapids, Iowa 52498 Bryce.Ferguson at rockwellcollins.com
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Alex" == Alex Hildebrand <[email protected]> writes:
Hi there,
Does anyone of you have experience with a rootfs with a writable (aufs) overlay? I managed to compile aufs and mount a folder combining the read only rootfs with a read write data overlay. How to switch the rootfs to this mount point? Tried to move the mount point to this folder in the inittab, but this fails with "Too many levels of symbolic links"
I don't have any specific experience with aufs (any specific reasons to not use the in-kernel overlayfs instead), but you would normally need to setup the overlay in an initramfs and then switch_root to it before executing init.
Signature · 1 line
Bye, Peter Korsgaard
So switch_root does not work when used without an initramfs? Tried it directly from my read only rootfs but it does not change the root...
Is this the same with in-kernel overlayfs?
-------- Urspr?ngliche Nachricht --------Von: Peter Korsgaard <[email protected]> Datum: 19.02.18 22:46 (GMT+01:00) An: Alex Hildebrand <[email protected]> Cc: buildroot at buildroot.org Betreff: Re: Read only rootfs with writable (aufs) overlay
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Alex" == Alex Hildebrand <[email protected]> writes:
Hi there,
Does anyone of you have experience with a rootfs with a writable (aufs) overlay? I managed to compile aufs and mount a folder combining the read only rootfs with a read write data overlay. How to switch the rootfs to this mount point? Tried to move the mount point to this folder in the inittab, but this fails with "Too many levels of symbolic links"
I don't have any specific experience with aufs (any specific reasons to not use the in-kernel overlayfs instead), but you would normally need to setup the overlay in an initramfs and then switch_root to it before executing init.
Signature · 4 lines
Bye, Peter Korsgaard -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180219/a977b183/attachment.html>
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Alex" == Alex Hildebrand <[email protected]> writes:
So
switch_rootdoes 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
Quoted 2 lines
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 /.
Signature · 1 line
Bye, Peter Korsgaard