I'm trying to use initramfs-framework to mount an overlayfs, and I've got it 
working mostly. However, I found that when it boots, I get an error:

ERROR: There's no '/dev' on rootfs.

That comes from initramfs-framework's 'finish' script. I got around it by 
creating the /dev directory on my writable partition. I also created /proc and 
/sys since it looks as though those would be needed too.

Would it be better to change the 'finish' script to just create the required 
directory(s)? E.g.:

-               if [ ! -d $ROOTFS_DIR/dev ]; then
-                       fatal "ERROR: There's no '/dev' on rootfs."
-               fi
+               mkdir -p $ROOTFS_DIR/dev
+               mkdir -p $ROOTFS_DIR/proc
+               mkdir -p $ROOTFS_DIR/sys

-- 
Craig McQueen

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to