﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
2550	Udev bootscript enhancement	Mickaël Blanchard	lfs-book@…	"Hi everybody,

Following the build of an initramfs for my LFS system, I would like to suggest two possible enhancements concerning the bootscript ""udev"":

1- I think it could be useful to check if /dev is already a mountpoint prior to try to mount:

if ! mountpoint /dev >/dev/null; then
...
fi

This check is already performed for /proc and /sys in the script ""mountkernfs"". I think it's opportune to check /dev in the same way, because an initramfs which uses udev (or mdev in busybox) may already have mounted it (and moved it to the new root with a ""mount -o move"" command).

2- /dev is mounted using the tmpfs FS. However, the default maximum size of allocable RAM to such a mount point is equal to 50% of the total amount of available RAM. /dev may not grow over a very small size, even in the worst cases. For security, it could be useful to limit the size, no ? Example:
mount -n -t tmpfs tmpfs /dev -o size=256k,mode=755


Thank you for considering my suggestion.
"	enhancement	closed	normal	6.6	Bootscripts	SVN	minor	fixed		
