util-linux: update to 2.24.

this is needed for newer udev versions but need some initskript
changes. The updater and arm rootfile is not finished yet.
This commit is contained in:
Arne Fitzenreiter
2013-11-17 18:51:04 +01:00
parent 6ee9053548
commit 1ee33ddadf
10 changed files with 205 additions and 443 deletions

View File

@@ -24,11 +24,9 @@ case "${1}" in
# Remove fsck-related file system watermarks.
rm -f /fastboot /forcefsck
boot_mesg "Recording existing mounts in /etc/mtab..."
boot_mesg "Create /etc/mtab..."
> /etc/mtab
mount -f / || failed=1
mount -f /proc || failed=1
mount -f /sys || failed=1
(exit ${failed})
evaluate_retval
@@ -49,9 +47,6 @@ case "${1}" in
boot_mesg "Unmounting all other currently mounted file systems..."
umount -a -d -r &>/dev/null
evaluate_retval
# mount /sys again for led control at halt
mount /sys 2>&1 >/dev/null
;;
*)
echo "Usage: ${0} {start|stop}"

View File

@@ -6,7 +6,7 @@
#
# Authors : Arne Fitzenreiter - arne_f@ipfire.org
#
# Version : 1.01
# Version : 1.02
#
# Notes :
#
@@ -22,6 +22,12 @@ case "${1}" in
mount -o remount,rw / > /dev/null
evaluate_retval
boot_mesg "Create /etc/mtab..."
> /etc/mtab
mount -f / || failed=1
(exit ${failed})
evaluate_retval
# Detect device
ROOT=`mount | grep -m1 " / " | cut -d" " -f1`;
if [ "${ROOT:`expr length $ROOT`-2:1}" == "p" ]; then
@@ -49,4 +55,3 @@ case "${1}" in
esac
# End $rc_base/init.d/partresize