From 8234b92d854335fe50c92e9a2b9c7a9d96028c95 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 11 Apr 2011 13:34:58 +0200 Subject: [PATCH] crypt/cryptroot-ask.sh: check and use NEWROOT --- modules.d/90crypt/cryptroot-ask.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh index 2099dfc5..6c7f18db 100755 --- 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