summaryrefslogtreecommitdiff
path: root/rootfs
diff options
context:
space:
mode:
Diffstat (limited to 'rootfs')
-rwxr-xr-xrootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs b/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs
index 09bf36f..a426a3f 100755
--- a/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs
+++ b/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs
@@ -33,8 +33,8 @@ fi
log_begin_msg "$0 resizing $ROOT"
-# Unmount for safety
-umount "${rootmnt}"
+# Unmount for safety; fail if unset or empty (shellcheck SC2154)
+umount "${rootmnt:?}"
# Expand the partition size to fill the entire device
parted -s $rootdev resizepart $rootpart_nr 100%