Skip to content

Commit

Permalink
Do not fail if a USB drive is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbakken committed Apr 9, 2023
1 parent b3235d4 commit 556b42a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/linux_preparation/files/get-boot-media
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

PATH_EMMC="/dev/mmcblk0p2"
PATH_USB="/dev/sda2"
UUID_EMMC=`lsblk -o UUID -n /dev/mmcblk0p2`
UUID_USB=`lsblk -o UUID -n /dev/sda2`
UUID_EMMC=`lsblk -o UUID -n /dev/mmcblk0p2 2>/dev/null`
UUID_USB=`lsblk -o UUID -n /dev/sda2 2>/dev/null`

DEV=`grep "^rootdev=" /mnt/emmc/armbianEnv.txt | sed 's:rootdev=::' | sed 's:UUID=::'`

Expand Down

0 comments on commit 556b42a

Please sign in to comment.