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:
/mnt/root , /overlay merged /mnt/ro. , works right point make /mnt/ro root. there seems little information on overlayfs hope can here.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
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
Post a Comment