genkernel
genkernel copied to clipboard
initrd.scripts: mount_devfs: check whether devtmpfs is mounted on /dev
If tmpfs is used for /dev, it is not enough to check whether tmpfs is mounted somewhere as it could be used for other reasons. Also ensure that devtmpfs is mounted at the right mountpoint (/dev) and not somewhere else.
mount_devfs()
is only called once, early in linuxrc. Please explain how this should become a problem.
Hi @Whissi. Two points.
- It could be nested initramfs.
- Even with single initramfs my check is faster and guarantee that any accidental future changes will not break the things.