genkernel icon indicating copy to clipboard operation
genkernel copied to clipboard

initrd.scripts: mount_devfs: check whether devtmpfs is mounted on /dev

Open Karlson2k opened this issue 4 years ago • 2 comments

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.

Karlson2k avatar Sep 02 '20 13:09 Karlson2k

mount_devfs() is only called once, early in linuxrc. Please explain how this should become a problem.

Whissi avatar Sep 30 '20 22:09 Whissi

Hi @Whissi. Two points.

  1. It could be nested initramfs.
  2. Even with single initramfs my check is faster and guarantee that any accidental future changes will not break the things.

Karlson2k avatar Oct 01 '20 11:10 Karlson2k