[yocto] initramfs-framework ERROR: There's no '/dev' on rootfs.
Craig McQueen
craig.mcqueen at innerrange.com
Wed Apr 29 00:18:07 PDT 2015
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
More information about the yocto
mailing list