summaryrefslogtreecommitdiff
path: root/rootfs/etc/initramfs-tools/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'rootfs/etc/initramfs-tools/scripts')
-rwxr-xr-xrootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs5
1 files changed, 4 insertions, 1 deletions
diff --git a/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs b/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs
index 680e133..64b4dee 100755
--- a/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs
+++ b/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs
@@ -46,7 +46,10 @@ partprobe "$rootdev"
resize2fs "$rootpart"
# Remount root
-if ! mount -r ${FSTYPE:+-t "${FSTYPE}"} "${ROOTFLAGS}" "${ROOT}" "${rootmnt?}"; then
+# Don't quote ${ROOTFLAGS} as that results in an extra (empty) argument
+# to 'mount', which in turn causes a boot failure
+# shellcheck disable=SC2086
+if ! mount -r ${FSTYPE:+-t "${FSTYPE}"} ${ROOTFLAGS} "${ROOT}" "${rootmnt?}"; then
panic "Failed to mount ${ROOT} as root file system."
fi