Source-Changes-HG archive

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

[src/trunk]: src/etc/rc.d Support resizing wedges



details:   https://anonhg.NetBSD.org/src/rev/e45190925f16
branches:  trunk
changeset: 933311:e45190925f16
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun May 24 14:43:19 2020 +0000

description:
Support resizing wedges

diffstat:

 etc/rc.d/resize_root |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 0c36e84fd8f1 -r e45190925f16 etc/rc.d/resize_root
--- a/etc/rc.d/resize_root      Sun May 24 14:42:44 2020 +0000
+++ b/etc/rc.d/resize_root      Sun May 24 14:43:19 2020 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: resize_root,v 1.4 2018/10/06 13:09:53 jmcneill Exp $
+# $NetBSD: resize_root,v 1.5 2020/05/24 14:43:19 jmcneill Exp $
 #
 
 # PROVIDE: resize_root
@@ -72,7 +72,7 @@
                        fi
                done
 
-               rootdev=${fs_spec%/*}/r${fs_spec##*/}
+               rootdev=${fs_spec}
                break
        done < "${fstab_file}"
 
@@ -81,8 +81,8 @@
                return
        fi
 
-       if resize_ffs -c $rootdev; then
-               echo "Resizing $rootmp"
+       if resize_ffs -c "$rootdev"; then
+               echo "Resizing $rootmp ($rootdev)"
                if ! resize_ffs -y $resize_root_flags $rootdev; then
                    echo "Error resizing root."
                    stop_boot
@@ -91,7 +91,7 @@
                        ${resize_root_postcmd}
                fi
        else
-               echo "Not resizing $rootmp: already correct size"
+               echo "Not resizing $rootmp ($rootdev): already correct size"
        fi
        return
 }



Home | Main Index | Thread Index | Old Index