diff options
author | P. 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) |
commit | c40a12488b8e9e929d8b2aa2ad52904867f8c278 (patch) | |
tree | 1dabd3fefaccf3d8a69606353a9b519d4aaae9bf /src/cmd/mkinitramfs.sh | |
parent | 6c35a8ea3f43974f911af84680aaa118a9a711e0 (diff) |
cmd/*: Check return value of block_mount()
Diffstat (limited to 'src/cmd/mkinitramfs.sh')
-rw-r--r-- | src/cmd/mkinitramfs.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/mkinitramfs.sh b/src/cmd/mkinitramfs.sh index e888548..52689a8 100644 --- a/src/cmd/mkinitramfs.sh +++ b/src/cmd/mkinitramfs.sh @@ -54,7 +54,9 @@ cmd_mkinitramfs_main() dev='' if is_block "${root}"; then dev="${root}" - root="$(block_mount "${dev}")" + if ! root="$(block_mount "${dev}")"; then + return 2 + fi fi if ! profile_detect "${root}"; then |