Skip to content

Commit

Permalink
add variable FAI_KEEP_CRYPTKEYFILE
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Sep 11, 2023
1 parent ec6a045 commit 9fe812b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/setup-storage
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,11 @@ foreach (&numsort(keys %FAI::commands)) {
}

# clean crypt key files
unless (defined ($ENV{'FAI_KEEP_CRYPTKEYFILE'})) {
foreach (@FAI::crypttab) {
my $fname = (split)[0];
unlink "$FAI::DATADIR/$fname";
my $fname = (split)[0];
unlink "$FAI::DATADIR/$fname";
}
}

# generate the proposed fstab contents
Expand Down

0 comments on commit 9fe812b

Please sign in to comment.