]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/init.d/partresize
Merge remote-tracking branch 'mfischer/ethtool' into next
[ipfire-2.x.git] / src / initscripts / init.d / partresize
index 38c5683166e034c93c7f7abd8d6768ecac3dd6fc..8c05f4d15e6e11921039e0ac75d4045ec7af691d 100644 (file)
@@ -22,8 +22,14 @@ 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
-                       while read -r dev mountpoint fs options; do
+                       mount | while read -r dev tmp1 mountpoint tmp2; do
                                [ "${dev}" = "rootfs" ] && continue
 
                                if [ "${mountpoint}" = "/" ]; then
@@ -57,7 +63,7 @@ case "${1}" in
                                        sleep 15
                                        reboot -f
                                fi
-                       done < /proc/mounts
+                       done
                fi
                ;;
        *)