raise error and exit on nonexistent block device (#42)
This commit is contained in:
parent
93f62d50a2
commit
1814d4cf66
2
Makefile
2
Makefile
@ -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…
Reference in New Issue
Block a user