diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-17 12:05:29 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-17 12:05:29 (EST) |
commit | 5caa31726d2c68ddc7541d6a725d3ed51cd6aa1a (patch) | |
tree | 650610b75cd5c4ecc77099f42206d3fb3393b21a /src/block.sh | |
parent | 1ec9ffe260004941733855b9d1accfb8db60c227 (diff) |
cmd/installer-pc, block_mount): Check ret val of check_block()
Diffstat (limited to 'src/block.sh')
-rw-r--r-- | src/block.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/block.sh b/src/block.sh index f056305..fb6b921 100644 --- a/src/block.sh +++ b/src/block.sh @@ -40,7 +40,9 @@ block_mount() local dev="${1}" local dir= - check_block "${dev}" + if ! check_block "${dev}"; then + return 2 + fi rand dir="$(get_vardata_dir 'mount')/block-$(printf '%010d' ${rand_x})" |