#2550: Udev bootscript enhancement
-------------------------+--------------------------------------------------
 Reporter:  mickb        |       Owner:  lfs-b...@…                   
     Type:  enhancement  |      Status:  new                          
 Priority:  normal       |   Milestone:  6.6                          
Component:  Bootscripts  |     Version:  SVN                          
 Severity:  minor        |    Keywords:                               
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2550>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to