Skip to main content

Thread: overlayfs after switch_root


i'm trying overlayfs working. patched kernel , overlay seems work in initramfs issue switch_root lose overlay.

here initramfs init:
code:
#!/bin/busybox sh    # mount /proc , /sys filesystems.  mount -t proc none /proc  mount -t sysfs none /sys    echo "welcome busybox!"  mount -o ro /dev/mmcblk0p2 /mnt/root  mount -t tmpfs tmpfs /overlay  mount -t overlayfs overlayfs -o lowerdir=/mnt/root,upperdir=/overlay /mnt/ro    # clean up.  #umount /proc  #umount /sys    exec switch_root /mnt/ro /sbin/init
/mnt/root , /overlay merged /mnt/ro. , works right point make /mnt/ro root. there seems little information on overlayfs hope can here.



Forum The Ubuntu Forum Community Other Discussion and Support Other OS Support and Projects Other Operating Systems Any Other OS overlayfs after switch_root


Ubuntu

Comments

Popular posts from this blog

Illustrator CS5 javascript JPEG export 300 DPI & max quality

Thread: Raspberry pi wont get past the login menu!!!