Skip to content

Commit 6efe6ca

Browse files
Check for mkfs.btrfs even after running the apt-get commands
1 parent fedcc92 commit 6efe6ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/bsp/common/usr/bin/armbian-install

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,11 @@ format_disk()
681681
"\nFailed to install btrfs-progs\n\nThe log file has been written to $logfile" 5 60
682682
exit 15
683683
fi
684-
else
685-
dialog --title "$title" --backtitle "$backtitle" --colors --infobox\
686-
"\nCannot proceed without btrfs-progs" 5 60
684+
fi
685+
686+
if ! command -v mkfs.btrfs; then
687+
dialog --title "$title" --backtitle "$backtitle" --colors\
688+
--infobox "\nmkfs.btrfs not found, cannot proceed" 5 60
687689
exit 12
688690
fi
689691
fi

0 commit comments

Comments
 (0)