Skip to content

Commit

Permalink
Supresses chattr output. Closes #56. (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
umbernhard authored Aug 5, 2022
1 parent c8d6ec8 commit f7e97e4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions airootfs/usr/share/vx-img/flash-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,12 @@ function flash_keys() {
SUCCESS=1

# We have to make sure we can write the keys.
chattr -i /sys/firmware/efi/efivars/db* 2>&1 /dev/null
chattr -i /sys/firmware/efi/efivars/KEK* 2>&1 /dev/null
chattr -i /sys/firmware/efi/efivars/PK* 2>&1 /dev/null
# shellcheck disable=SC2210
chattr -i /sys/firmware/efi/efivars/db* 2&>1 /dev/null
# shellcheck disable=SC2210
chattr -i /sys/firmware/efi/efivars/KEK* 2&>1 /dev/null
# shellcheck disable=SC2210
chattr -i /sys/firmware/efi/efivars/PK* 2&>1 /dev/null

keys=$(lsblk -x SIZE -nblo NAME,LABEL,SIZE,TYPE | grep -iF "Keys" | awk '{ print $1 }')

Expand Down

0 comments on commit f7e97e4

Please sign in to comment.