Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d add KEYWORD: interactive, honour resize_root_flags ...
details: https://anonhg.NetBSD.org/src/rev/b77778e8d265
branches: trunk
changeset: 337219:b77778e8d265
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Apr 06 22:40:09 2015 +0000
description:
add KEYWORD: interactive, honour resize_root_flags and resize_root_postcmd rc vars
diffstat:
etc/rc.d/resize_root | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 0d9276b95410 -r b77778e8d265 etc/rc.d/resize_root
--- a/etc/rc.d/resize_root Mon Apr 06 22:20:52 2015 +0000
+++ b/etc/rc.d/resize_root Mon Apr 06 22:40:09 2015 +0000
@@ -1,10 +1,11 @@
#!/bin/sh
#
-# $NetBSD: resize_root,v 1.1 2015/03/30 10:58:37 chopps Exp $
+# $NetBSD: resize_root,v 1.2 2015/04/06 22:40:09 jmcneill Exp $
#
# PROVIDE: resize_root
# REQUIRE: fsck_root
+# KEYWORD: interactive
$_rc_subr_loaded . /etc/rc.subr
@@ -81,10 +82,13 @@
if resize_ffs -c $rootdev; then
echo "Resizing $rootmp"
- if ! resize_ffs -y $rootdev; then
+ if ! resize_ffs -p $resize_root_flags $rootdev; then
echo "Error resizing root."
stop_boot
fi
+ if [ ! -z "${resize_root_postcmd}" ]; then
+ ${resize_root_postcmd}
+ fi
else
echo "Not resizing $rootmp: already correct size"
fi
Home |
Main Index |
Thread Index |
Old Index