Glenn Washburn c1ee4da6a9 tests/util/grub-shell-luks-tester: Fix detached header test getting wrong header path
When $detached_header was set 1, $luksdiskfile was set to the LUKS header
file path with "${detached_header:-$luksfile}" appended, which evaluates
to "1". Fix this by using two statements to set $luksdiskfile. The first
sets it to the header file if $detached_header is set, otherwise leave it
unset. The second statement sets it to itself if it is already set,
otherwise it is set to $luksfile.

Fixes: a7b540e6e (tests: Add cryptomount functional test)

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2024-06-20 15:14:20 +02:00
..
2010-08-19 17:50:05 +05:30
2017-05-03 12:49:31 +02:00
2017-05-03 12:49:31 +02:00
2010-05-05 15:34:26 +05:30
2017-05-03 12:49:31 +02:00
2012-06-08 22:54:21 +02:00
2013-04-29 12:25:57 +02:00
2010-09-05 14:57:28 +05:30
2010-05-12 17:46:49 +05:30
2023-08-31 16:55:41 +02:00
2013-10-26 14:52:54 +02:00