Browse Source

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

ml507
Jesse Zbikowski 4 years ago committed by Wesley W. Terpstra
parent
commit
1814d4cf66
  1. 2
      Makefile

2
Makefile

@ -225,7 +225,7 @@ FSBL = 5B193300-FC78-40CD-8002-E86C45580B47 @@ -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) \

Loading…
Cancel
Save