Changeset 1718 in MondoRescue
- Timestamp:
- Oct 28, 2007, 11:18:13 AM (17 years ago)
- Location:
- branches/2.2.5/mindi
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/mindi
r1716 r1718 2768 2768 echo "udev device manager found" > tmp/USE-UDEV 2769 2769 cp --parents -Rdf /etc/udev . 2> /dev/null 2770 cp --parents -Rdf /lib/udev . 2> /dev/null2770 cp --parents -Rdf /lib/udev /lib64/udev . 2> /dev/null 2771 2771 fi 2772 2772 for w in cdrom floppy groovy-stuff ; do -
branches/2.2.5/mindi/rootfs/sbin/init
r1717 r1718 252 252 } 253 253 254 # Taken from udev management in Mandriva 2008.0. Kudos guys 255 make_extra_nodes () { 256 # there are a few things that sysfs does not export for us. 257 # these things are listed in /etc/udev/links.conf 258 grep '^[^#]' /etc/udev-links.conf | \ 259 while read type name arg1; do 260 [ "$type" -a "$name" -a ! -e "/dev/$name" -a ! -L "/dev/$name" ] ||continue 261 case "$type" in 262 L) ln -s $arg1 /dev/$name ;; 263 D) mkdir -p /dev/$name ;; 264 M) mknod --mode=600 /dev/$name $arg1 ;; 265 *) gprintf "udev-links.conf: unparseable line (%s %s %s)\n" "$type" "$name" "$arg1" ;; 266 esac 267 done 268 } 269 270 254 271 RunUdevd() { 255 # Inspiration from LFS docs 256 mkdir -p /lib/udev/devices && 257 mknod -m0666 /lib/udev/devices/null c 1 3 258 ln -sf /proc/self/fd /lib/udev/devices/fd && 259 ln -sf /proc/self/fd/0 /lib/udev/devices/stdin && 260 ln -sf /proc/self/fd/1 /lib/udev/devices/stdout && 261 ln -sf /proc/self/fd/2 /lib/udev/devices/stderr && 262 ln -sf /proc/kcore /lib/udev/devices/core && 263 mkdir -p /lib/udev/devices/{pts,shm} 264 cp -R /lib/udev/devices/* /dev 272 # Inspiration from Mandriva 2008.0 startup script 273 echo "Preparing udev environment..." 274 mv /dev /dev.static 275 mkdir /dev 276 mount -n -o size=5M,mode=0755 -t tmpfs none /dev 277 make_extra_nodes 278 mount -n -t devpts -o mode=620 none /dev/pts 279 mount -n -t tmpfs none /dev/shm 265 280 udevd --daemon 266 281 } 267 268 269 282 270 283 … … 448 461 install-additional-tools 449 462 echo "Inserting modules ..." 463 # Keep the kernel silent again 464 PKLVL=`cut -f1 /proc/sys/kernel/printk` 465 echo 0 > /proc/sys/kernel/printk 450 466 insert-all-my-modules >> $LOGFILE 2>> $LOGFILE 467 echo $PKLVL > /proc/sys/kernel/printk 451 468 } 452 469 … … 480 497 RunUdevd 481 498 fi 482 echo "Starting potential Raid/LVMs ..."483 499 ExtractDevTarballs 484 500 LaunchTerminals 501 502 # Keeping kernel silent for module insertion 503 PKLVL=`cut -f1 /proc/sys/kernel/printk` 504 echo 0 > /proc/sys/kernel/printk 485 505 InsertEssentialModules 506 echo $PKLVL > /proc/sys/kernel/printk 507 486 508 EnableCcissIfAppropriate 487 509 #-------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.