Changeset 28c4c1e for bootscripts


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

Location:
bootscripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    r85e7f3c r28c4c1e  
     12013-05-15 Bruce Dubbs <bdubbs@linuxfromscratch.org>
     2   * Remove unneeded options and commands from mountfs and
     3     mountvirtfs when mtab is a symlink to /proc/self/mounts
     4
    152013-05-11 Bruce Dubbs <bdubbs@linuxfromscratch.org>
    26   * Make sure the root fs is mounted read only in mountfs
  • 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
  • bootscripts/lfs/init.d/mountvirtfs

    r85e7f3c r28c4c1e  
    3434      # Make sure /run/var is available before logging any messages
    3535      if ! mountpoint /run >/dev/null; then
    36          mount -n /run || failed=1
     36         mount /run || failed=1
    3737      fi
    3838
     
    4444      if ! mountpoint /proc >/dev/null; then
    4545         log_info_msg2 " ${INFO}/proc"
    46          mount -n -o nosuid,noexec,nodev /proc || failed=1
     46         mount -o nosuid,noexec,nodev /proc || failed=1
    4747      fi
    4848
    4949      if ! mountpoint /sys >/dev/null; then
    5050         log_info_msg2 " ${INFO}/sys"
    51          mount -n -o nosuid,noexec,nodev /sys || failed=1
     51         mount -o nosuid,noexec,nodev /sys || failed=1
    5252      fi
    5353
    5454      if ! mountpoint /dev >/dev/null; then
    5555         log_info_msg2 " ${INFO}/dev"
    56          mount -n -o mode=0755,nosuid /dev  || failed=1
     56         mount -o mode=0755,nosuid /dev  || failed=1
    5757      fi
    5858
Note: See TracChangeset for help on using the changeset viewer.