discussing [2006031503183331996]
Tobias Hintze <[email protected]> Wed, 15 Mar 2006 22:19:32 +0100
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
talking of https://www.rocklinux.net/submaster/smadm.cgi?i=2006031503183331996
Andreas V. Meier, fake:
udev: cleanups:
- scripts in /lib/udev like intended
- static devices in /lib/udev/devices
- own fixed rules file
- own fixed scripts
- install extras
- adopt rockinitrd and bootdisk for
lib/udev/devices usage
===================================
+ mkdir -p $root/lib/udev/devices
+ ln -sv /proc/self/fd $root/lib/udev/devices/fd
+ ln -sv /proc/kcore $root/lib/udev/devices/core
+ ln -sv /proc/self/fd/0 $root/lib/udev/devices/stdin
+ ln -sv /proc/self/fd/1 $root/lib/udev/devices/stdout
+ ln -sv /proc/self/fd/2 $root/lib/udev/devices/stderr
===================================
that's a problem in e.g. stage=9
the files must not exist for the above.
we have some options here:
1.) rm -rf $root/lib/udev/devices before creating it.
-----------------------------------------------------
pro: sane /lib/udev/devices
con: we might wipe out user-created devices in that dir
(we could offer another dir for such to the user)
2.) `test -e` each link before creating
---------------------------------------
con: user might still cause problems by putting
wrong files into that dir
3.) `rm -f` each single node before creating
--------------------------------------------
con: dunno
th
--
Tobias Hintze http://hbs-solutions.de
HBS solutions GbR - Network & Information Systems