Ignore:
Timestamp:
05/15/2013 05:01:37 PM (11 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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
Message:

Remove unneeded options and commands from mountfs and
mountvirtfs when mtab is a symlink to /proc/self/mounts

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10275 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/mountfs

    r85e7f3c r28c4c1e  
    3434   start)
    3535      log_info_msg "Remounting root file system in read-write mode..."
    36       mount -n -o remount,rw / >/dev/null
     36      mount -o remount,rw / >/dev/null
    3737      evaluate_retval
    3838
    3939      # Remove fsck-related file system watermarks.
    4040      rm -f /fastboot /forcefsck
    41 
    42       log_info_msg "Recording existing mounts in /etc/mtab..."
    43       > /etc/mtab
    44 
    45       mount -f /     || failed=1
    46       mount -f /proc || failed=1
    47       mount -f /sys  || failed=1
    48       mount -f /run  || failed=1
    49       mount -f /dev  || failed=1
    50       (exit ${failed})
    51       evaluate_retval
    5241
    5342      # This will mount all filesystems that do not have _netdev in
     
    6150
    6251   stop)
    63       # Don't unmount tmpfs like /run
     52      # Don't unmount virtual file systems like /run
    6453      log_info_msg "Unmounting all other currently mounted file systems..."
    65       umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null
     54      umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null
    6655      evaluate_retval
    6756
    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 /
    7059
    7160      # Make all LVM volume groups unavailable, if appropriate
Note: See TracChangeset for help on using the changeset viewer.