troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
621 stars 61 forks source link

Weird mount errors/warnings at startup #237

Closed hongkongkiwi closed 2 years ago

hongkongkiwi commented 2 years ago

I'm having these errors from finit upon startup with git version: c24855d4d544b52811eeb8fa326a5ef6ba9e25bf

● ● ●  Buildroot 2021.02.1 ═════════════════════════════════════════════
[ ⋯  ] Mounting filesystemsmount: mounting devpts on /dev/pts failed: No such file or directory
mount: mounting tmpfs on /dev/shm failed: No such file or directory
[ OK ]
[ OK ] Cold plugging system
........ snip .....

I'm unsure what's causing this as I can mount manually using mount -a from the getty without errors.

Here's my /etc/fstab file:

# /etc/fstab: static file system information.
#
# <file system> <mount pt>       <type>    <options>                      <dump> <pass>
/dev/root       /                ext2      ro,noauto                       0      1

# These are mounted before fstab
#devpts          /dev/pts         devpts    defaults,gid=5,mode=620        0     0

# Mount tempfs
proc            /proc             proc     defaults                        0     0
sysfs           /sys              sysfs    defaults                        0     0
devpts          /dev/pts          devpts   noexec,nosuid,gid=0,mode=0600   0     0
tmpfs           /dev/shm          tmpfs    mode=0777                       0     0
tmpfs           /tmp              tmpfs    mode=1777                       0     0
tmpfs           /run              tmpfs    mode=1777                       0     0

# Mount Kernel Debug
debugfs        /sys/kernel/debug  debugfs  noauto                          0     0
troglobit commented 2 years ago

Yeah this is sort of new, we get more output on the boot console (and log) from failing commands like mount -a at boot. I have this in my Buildroot's fstab:

mkdir#-p        /dev/shm        helper          none                    0       0
tmpfs           /dev/shm        tmpfs           mode=0777               0       0

Also have mount helpers enabled in BusyBox, which is what allows mount to create the /dev/shm mount point.

troglobit commented 2 years ago

@hongkongkiwi ping ... did this help?

hongkongkiwi commented 2 years ago

Thanks! Just tested and the mount helper fixes the issue