diff options
author | 2017-10-13 18:06:28 +0000 | |
---|---|---|
committer | 2017-10-13 18:06:28 +0000 | |
commit | c8b3c08fcef328f935526dcc8279f9f33e62aeff (patch) | |
tree | ab090f06855a67861574c1e91fcd8da6650f4f99 | |
parent | - use db_printf() (diff) | |
download | wireguard-openbsd-c8b3c08fcef328f935526dcc8279f9f33e62aeff.tar.xz wireguard-openbsd-c8b3c08fcef328f935526dcc8279f9f33e62aeff.zip |
Move extraction of rootdisk information into the DONEPROFILE if-block.
OK tb@
-rw-r--r-- | distrib/miniroot/dot.profile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/dot.profile b/distrib/miniroot/dot.profile index 3d5c3d7d389..f4b5821c13b 100644 --- a/distrib/miniroot/dot.profile +++ b/distrib/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.41 2017/10/13 17:31:26 rpe Exp $ +# $OpenBSD: dot.profile,v 1.42 2017/10/13 18:06:28 rpe Exp $ # $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $ # # Copyright (c) 2009 Kenneth R. Westerback @@ -43,12 +43,12 @@ umask 022 # emacs-style command line editing. set -o emacs -# Extract rootdisk from last 'root on ...' dmesg line. -rootdisk=$(dmesg | sed -E '/^root on ([^ ]+) .*$/h;$!d;g;s//\1/') if [[ -z $DONEPROFILE ]]; then DONEPROFILE=YES + # Extract rootdisk from last 'root on ...' dmesg line. + rootdisk=$(dmesg | sed -E '/^root on ([^ ]+) .*$/h;$!d;g;s//\1/') mount -u /dev/${rootdisk:-rd0a} / # Create a fake rc that just returns 1 and throws us back. |