Changeset 28c4c1e for bootscripts/lfs/init.d/mountfs
- Timestamp:
- 05/15/2013 05:01:37 PM (11 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.4, 7.5, 7.6, 7.7, 7.8, 7.9, 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:
- 4e7e16d
- Parents:
- 85e7f3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/init.d/mountfs
r85e7f3c r28c4c1e 34 34 start) 35 35 log_info_msg "Remounting root file system in read-write mode..." 36 mount - n -o remount,rw / >/dev/null36 mount -o remount,rw / >/dev/null 37 37 evaluate_retval 38 38 39 39 # Remove fsck-related file system watermarks. 40 40 rm -f /fastboot /forcefsck 41 42 log_info_msg "Recording existing mounts in /etc/mtab..."43 > /etc/mtab44 45 mount -f / || failed=146 mount -f /proc || failed=147 mount -f /sys || failed=148 mount -f /run || failed=149 mount -f /dev || failed=150 (exit ${failed})51 evaluate_retval52 41 53 42 # This will mount all filesystems that do not have _netdev in … … 61 50 62 51 stop) 63 # Don't unmount tmpfs like /run52 # Don't unmount virtual file systems like /run 64 53 log_info_msg "Unmounting all other currently mounted file systems..." 65 umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null54 umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null 66 55 evaluate_retval 67 56 68 # Make sure / is mounted read only (umount bug ?)69 mount - n -o remount,ro /57 # Make sure / is mounted read only (umount bug) 58 mount -o remount,ro / 70 59 71 60 # Make all LVM volume groups unavailable, if appropriate
Note:
See TracChangeset
for help on using the changeset viewer.