Skip to content

Commit

Permalink
add test, do not mount for several types of FAI_ACTION
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Jan 16, 2024
1 parent 64a4280 commit dceeb12
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,12 @@ ctam() {
for f in /sys /proc /dev /dev/pts; do
mount --bind $f ${target}$f
done
if [ -d /sys/firmware/efi ]; then
mount --bind /sys/firmware/efi/efivars $target/sys/firmware/efi/efivars
if [ "$FAI_ACTION" = "softupdate" -o "$FAI_ACTION" = "dirinstall" ]; then
: # do not mount efivars for these actions
else
if [ -d /sys/firmware/efi ]; then
mount --bind /sys/firmware/efi/efivars $target/sys/firmware/efi/efivars
fi
fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit dceeb12

Please sign in to comment.