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

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP