mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-05 22:04:48 +00:00
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
This commit is contained in:
parent
85e7f3ce1d
commit
28c4c1ede4
@ -1,3 +1,7 @@
|
||||
2013-05-15 Bruce Dubbs <bdubbs@linuxfromscratch.org>
|
||||
* Remove unneeded options and commands from mountfs and
|
||||
mountvirtfs when mtab is a symlink to /proc/self/mounts
|
||||
|
||||
2013-05-11 Bruce Dubbs <bdubbs@linuxfromscratch.org>
|
||||
* Make sure the root fs is mounted read only in mountfs
|
||||
before halting
|
||||
|
@ -33,23 +33,12 @@
|
||||
case "${1}" in
|
||||
start)
|
||||
log_info_msg "Remounting root file system in read-write mode..."
|
||||
mount -n -o remount,rw / >/dev/null
|
||||
mount -o remount,rw / >/dev/null
|
||||
evaluate_retval
|
||||
|
||||
# Remove fsck-related file system watermarks.
|
||||
rm -f /fastboot /forcefsck
|
||||
|
||||
log_info_msg "Recording existing mounts in /etc/mtab..."
|
||||
> /etc/mtab
|
||||
|
||||
mount -f / || failed=1
|
||||
mount -f /proc || failed=1
|
||||
mount -f /sys || failed=1
|
||||
mount -f /run || failed=1
|
||||
mount -f /dev || failed=1
|
||||
(exit ${failed})
|
||||
evaluate_retval
|
||||
|
||||
# This will mount all filesystems that do not have _netdev in
|
||||
# their option list. _netdev denotes a network filesystem.
|
||||
|
||||
@ -60,13 +49,13 @@ case "${1}" in
|
||||
;;
|
||||
|
||||
stop)
|
||||
# Don't unmount tmpfs like /run
|
||||
# Don't unmount virtual file systems like /run
|
||||
log_info_msg "Unmounting all other currently mounted file systems..."
|
||||
umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null
|
||||
umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null
|
||||
evaluate_retval
|
||||
|
||||
# Make sure / is mounted read only (umount bug?)
|
||||
mount -n -o remount,ro /
|
||||
# Make sure / is mounted read only (umount bug)
|
||||
mount -o remount,ro /
|
||||
|
||||
# Make all LVM volume groups unavailable, if appropriate
|
||||
# This fails if swap or / are on an LVM partition
|
||||
|
@ -33,7 +33,7 @@ case "${1}" in
|
||||
start)
|
||||
# Make sure /run/var is available before logging any messages
|
||||
if ! mountpoint /run >/dev/null; then
|
||||
mount -n /run || failed=1
|
||||
mount /run || failed=1
|
||||
fi
|
||||
|
||||
mkdir -p /run/var /run/lock /run/shm
|
||||
@ -43,17 +43,17 @@ case "${1}" in
|
||||
|
||||
if ! mountpoint /proc >/dev/null; then
|
||||
log_info_msg2 " ${INFO}/proc"
|
||||
mount -n -o nosuid,noexec,nodev /proc || failed=1
|
||||
mount -o nosuid,noexec,nodev /proc || failed=1
|
||||
fi
|
||||
|
||||
if ! mountpoint /sys >/dev/null; then
|
||||
log_info_msg2 " ${INFO}/sys"
|
||||
mount -n -o nosuid,noexec,nodev /sys || failed=1
|
||||
mount -o nosuid,noexec,nodev /sys || failed=1
|
||||
fi
|
||||
|
||||
if ! mountpoint /dev >/dev/null; then
|
||||
log_info_msg2 " ${INFO}/dev"
|
||||
mount -n -o mode=0755,nosuid /dev || failed=1
|
||||
mount -o mode=0755,nosuid /dev || failed=1
|
||||
fi
|
||||
|
||||
# Copy devices that Udev >= 155 doesn't handle to /dev
|
||||
|
@ -35,6 +35,16 @@
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
-->
|
||||
<listitem>
|
||||
<para>2013-05-15</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[bdubbs] - Remove unnecessary options in bootscripts
|
||||
due to mtab change.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>2013-05-14</para>
|
||||
<itemizedlist>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!ENTITY version "SVN-20130514">
|
||||
<!ENTITY releasedate "May 14, 2013">
|
||||
<!ENTITY version "SVN-20130515">
|
||||
<!ENTITY releasedate "May 15, 2013">
|
||||
<!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – -->
|
||||
<!ENTITY milestone "7.4">
|
||||
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||
|
@ -310,7 +310,7 @@
|
||||
<!ENTITY less-ch6-du "3.6 MB">
|
||||
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
||||
|
||||
<!ENTITY lfs-bootscripts-version "20130511"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-bootscripts-version "20130515"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
|
||||
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
||||
|
Loading…
Reference in New Issue
Block a user