summaryrefslogtreecommitdiffstats
path: root/src/cmd/mkinitramfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/mkinitramfs.sh')
-rw-r--r--src/cmd/mkinitramfs.sh4
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