Changeset e9ba8aa8 for bootscripts
- Timestamp:
- 01/16/2012 06:34:31 PM (12 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- f70b664
- Parents:
- 6c3ab2e
- Location:
- bootscripts/lfs/init.d
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/init.d/mountfs
r6c3ab2e re9ba8aa8 47 47 mount -f /sys || failed=1 48 48 mount -f /run || failed=1 49 mount -f /dev || failed=1 49 50 (exit ${failed}) 50 51 evaluate_retval -
bootscripts/lfs/init.d/mountvirtfs
r6c3ab2e re9ba8aa8 42 42 if ! mountpoint /proc >/dev/null; then 43 43 log_info_msg2 " ${INFO}/proc" 44 mount -n /proc || failed=144 mount -n -o nosuid,noexec,nodev /proc || failed=1 45 45 fi 46 46 47 47 if ! mountpoint /sys >/dev/null; then 48 48 log_info_msg2 " ${INFO}/sys" 49 mount -n /sys || failed=149 mount -n -o nosuid,noexec,nodev /sys || failed=1 50 50 fi 51 52 if ! mountpoint /dev >/dev/null; then 53 log_info_msg2 " ${INFO}/dev" 54 mount -n -o mode=0755,nosuid /dev || failed=1 55 fi 56 57 ln -s /run/shm /dev/shm 58 59 # Copy the only static device node that Udev >= 155 doesn't 60 # handle to /dev 61 cp -a /lib/udev/devices/null /dev 51 62 52 63 (exit ${failed}) -
bootscripts/lfs/init.d/udev
r6c3ab2e re9ba8aa8 44 44 fi 45 45 46 # Mount a temporary file system over /dev, so that any devices47 # made or removed during this boot don't affect the next one.48 # The reason we don't write to mtab is because we don't ever49 # want /dev to be unavailable (such as by `umount -a').50 if ! mountpoint /dev > /dev/null; then51 mount -n -t tmpfs tmpfs /dev -o mode=75552 fi53 54 if [ ${?} != 0 ]; then55 log_failure_msg256 msg="FAILURE:\n\nCannot mount a tmpfs "57 msg="${msg}onto /dev, this system will be halted.\n\n"58 msg="${msg}After you press Enter, this system "59 msg="${msg}will be halted and powered off.\n\n"60 log_failure_msg "$msg"61 log_info_msg "Press Enter to continue..."62 wait_for_user63 /etc/rc.d/init.d/halt stop64 fi65 66 ln -s /run/shm /dev/shm67 68 46 # Udev handles uevents itself, so we don't need to have 69 47 # the kernel call out to any binary in response to them 70 48 echo > /proc/sys/kernel/hotplug 71 72 # Copy the only static device node that Udev >= 155 doesn't73 # handle to /dev74 cp -a /lib/udev/devices/null /dev75 49 76 50 # Start the udev daemon to continually watch for, and act on,
Note:
See TracChangeset
for help on using the changeset viewer.