summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-05-25 16:10:56 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-05-25 16:10:56 (EDT)
commitc95a8c47ff93f4dde6cfd5cf3373571ce68e3b20 (patch)
tree0fe868873cffd1f8dc8349fae281e09cb63f24ab
parentfe27982ac6e0bec91c9a9762b689018e50e47238 (diff)
cmd/installer-pc: Verify block dev before dd/fdisk
-rw-r--r--lib/cmd/installer-pc.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cmd/installer-pc.sh b/lib/cmd/installer-pc.sh
index 12e1193..faeceb3 100644
--- a/lib/cmd/installer-pc.sh
+++ b/lib/cmd/installer-pc.sh
@@ -50,6 +50,7 @@ cmd_installer_pc_main()
suite="${1}"
dev="${2}"
+ check_block "${dev}"
if [ "x${suite%%:*}" != "x${suite}" ]; then
profile="${suite%%:*}"