summaryrefslogtreecommitdiffstats
path: root/src/cmd/installer-pc.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-17 12:17:53 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-17 12:17:53 (EST)
commitc40a12488b8e9e929d8b2aa2ad52904867f8c278 (patch)
tree1dabd3fefaccf3d8a69606353a9b519d4aaae9bf /src/cmd/installer-pc.sh
parent6c35a8ea3f43974f911af84680aaa118a9a711e0 (diff)
cmd/*: Check return value of block_mount()
Diffstat (limited to 'src/cmd/installer-pc.sh')
-rw-r--r--src/cmd/installer-pc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh
index b513f26..0a87b88 100644
--- a/src/cmd/installer-pc.sh
+++ b/src/cmd/installer-pc.sh
@@ -68,7 +68,9 @@ cmd_installer_pc_main()
suite="$(profile_normalize_suite "${suite}")"
cmd_installer_pc_make_partition_and_fs "${dev}"
- root="$(block_mount "${dev}1")"
+ if ! root="$(block_mount "${dev}1")"; then
+ return 2
+ fi
install_system "${cmd_installer_pc_opt_m-}" "${suite}" \
"${cmd_installer_pc_opt_a-}" "${cmd_installer_pc_opt_p-}" \