projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6822764
)
crypt/cryptroot-ask.sh: check and use NEWROOT
author
Harald Hoyer
<harald@redhat.com>
Mon, 11 Apr 2011 11:34:58 +0000
(13:34 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 11 Apr 2011 11:34:58 +0000
(13:34 +0200)
modules.d/90crypt/cryptroot-ask.sh
patch
|
blob
|
history
diff --git
a/modules.d/90crypt/cryptroot-ask.sh
b/modules.d/90crypt/cryptroot-ask.sh
index
2099dfc
..
6c7f18d
100755
(executable)
--- a/
modules.d/90crypt/cryptroot-ask.sh
+++ b/
modules.d/90crypt/cryptroot-ask.sh
@@
-3,9
+3,10
@@
# ex: ts=8 sw=4 sts=4 et filetype=sh
PATH=/usr/sbin:/usr/bin:/sbin:/bin
+NEWROOT=${NEWROOT:-"/sysroot"}
# do not ask, if we already have root
-[ -f
/sysroot
/proc ] && exit 0
+[ -f
$NEWROOT
/proc ] && exit 0
# check if destination already exists
[ -b /dev/mapper/$2 ] && exit 0