[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2016: [SysVinit, mount] SysVinit uses non-existant option for umount



Package: sysvinit
Version: 2.57b-0

Package: mount
Version: 2.5-1

I'm not sure which package this reports belong to.

The new umount (from mount-2.5-1) does not have a '-n' option.
This option is used by some of the scripts from the sysvutils package.
If this is a sysvinit bug, it is fixed by the patch attached below.

Ray

-- CUT ME --
diff -r -u sysvinit-2.57b.orig/etc-debian/init.d/halt sysvinit-2.57b/etc-debian/init.d/halt
--- sysvinit-2.57b.orig/etc-debian/init.d/halt	Wed Aug  2 07:04:40 1995
+++ sysvinit-2.57b/etc-debian/init.d/halt	Tue Dec 12 19:09:57 1995
@@ -25,7 +25,7 @@
 echo -n "Unmounting file systems... "
 umount -a 2>/dev/null
 # If root is mounted read-only the above will have failed.
-umount -a -n
+umount -a
 echo "done."

 mount -n -o remount,ro /
diff -r -u sysvinit-2.57b.orig/etc-debian/init.d/reboot sysvinit-2.57b/etc-debian/init.d/reboot
--- sysvinit-2.57b.orig/etc-debian/init.d/reboot	Wed Aug  2 07:04:49 1995
+++ sysvinit-2.57b/etc-debian/init.d/reboot	Tue Dec 12 19:10:11 1995
@@ -25,7 +25,7 @@
 echo -n "Unmounting file systems... "
 umount -a 2>/dev/null
 # If root is mounted read-only the above will have failed.
-umount -a -n
+umount -a
 echo "done."

 mount -n -o remount,ro /
diff -r -u sysvinit-2.57b.orig/etc-debian/rc0.d/S20halt sysvinit-2.57b/etc-debian/rc0.d/S20halt
--- sysvinit-2.57b.orig/etc-debian/rc0.d/S20halt	Wed Aug  2 07:04:40 1995
+++ sysvinit-2.57b/etc-debian/rc0.d/S20halt	Tue Dec 12 19:09:57 1995
@@ -25,7 +25,7 @@
 echo -n "Unmounting file systems... "
 umount -a 2>/dev/null
 # If root is mounted read-only the above will have failed.
-umount -a -n
+umount -a
 echo "done."

 mount -n -o remount,ro /
diff -r -u sysvinit-2.57b.orig/etc-debian/rc6.d/S20reboot sysvinit-2.57b/etc-debian/rc6.d/S20reboot
--- sysvinit-2.57b.orig/etc-debian/rc6.d/S20reboot	Wed Aug  2 07:04:49 1995
+++ sysvinit-2.57b/etc-debian/rc6.d/S20reboot	Tue Dec 12 19:10:11 1995
@@ -25,7 +25,7 @@
 echo -n "Unmounting file systems... "
 umount -a 2>/dev/null
 # If root is mounted read-only the above will have failed.
-umount -a -n
+umount -a
 echo "done."

 mount -n -o remount,ro /
-- OUCH! --
--
POPULATION EXPLOSION  Unique in human experience, an event which happened
yesterday but which everyone swears won't happen until tomorrow.
- The Hipcrime Vocab by Chad C. Mulligan


Reply to: