mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
'fixed cryptdevice check'
This commit is contained in:
parent
23985115dc
commit
804f5378a5
1 changed files with 1 additions and 1 deletions
|
@ -2001,7 +2001,7 @@ getraidarrays() {
|
|||
|
||||
getcryptsetup() {
|
||||
CRYPTSETUP=""
|
||||
if [ "$(cryptsetup status $(basename $PART_ROOT))" ]; then
|
||||
if ! [ "$(cryptsetup status $(basename $PART_ROOT) | grep inactive) " ]; then
|
||||
CRYPTDEVICE="$(echo $(cryptsetup status $(basename $PART_ROOT) | grep device: | sed -e 's#device:##g'))"
|
||||
CRYPTNAME="$(basename $PART_ROOT)"
|
||||
CRYPTSETUP="cryptdevice=$CRYPTDEVICE:$CRYPTNAME"
|
||||
|
|
Loading…
Reference in a new issue