EDIT: This occurs when I am trying to use a separate partition with ANY mount point, not just /var
.
I am using Buildroot to build an embedded linux system. I am trying to use a separate partition for /var, but this occurs for ANY mount point. My init system is systemd, udev for device management. I've edited my fstab to:
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
/dev/mmcblk0p4 /var ext2 defaults 0 2
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
tmpfs /tmp tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /run tmpfs defaults 0 0
Once the system boots, I receive a message "Expecting device dev-mmcblk0p4.device...", eventually followed by:
"Timed out waiting for device dev-mmcblk0p4.device."
"Dependency failed for /var."
"Dependency failed for Local File Systems."
Same thing happens if I use /var2
, or anything else, as the mount point instead of /var
. Once the boot fails, it enters emergency mode and the mount will then successfully occur. I can then exit system maintenance and everything works as expected. What is causing this delayed mount?? Have I missed a step?
Screenshot of output:
add
event? – user3159253