raise error and exit on nonexistent block device (#42)

This commit is contained in:
Jesse Zbikowski 2018-03-13 14:52:19 -07:00 committed by Wesley W. Terpstra
parent 93f62d50a2
commit 1814d4cf66
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ FSBL = 5B193300-FC78-40CD-8002-E86C45580B47
.PHONY: format-boot-loader
format-boot-loader: $(bin)
@test -b $(DISK) || echo "$DISK: is not a block device"
@test -b $(DISK) || (echo "$(DISK): is not a block device"; exit 1)
sgdisk --clear \
--new=1:2048:67583 --change-name=1:bootloader --typecode=1:$(BBL) \
--new=2:264192: --change-name=2:root --typecode=2:$(LINUX) \