aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-12-19 22:39:11 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2019-12-19 22:42:37 +0100
commit6e5b1852be0247803ea070a6708010a0d3c2bc3e (patch)
treec51171e7cb840923dc60d1f8b5001889699794c6 /initramfs-init.in
parent35ec364352a1025a2836397abf9b89f8bb6aed79 (diff)
downloadmkinitfs-6e5b1852be0247803ea070a6708010a0d3c2bc3e.tar.bz2
mkinitfs-6e5b1852be0247803ea070a6708010a0d3c2bc3e.tar.xz
init: quote $rootfstype during comparison
Without this change this may result in a warning message to be printed during boot if the rootfstype kernel parameter is not set.
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index 76f284c..eaacb13 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -503,7 +503,7 @@ if [ -n "$KOPT_root" ]; then
mkdir -p /media/root-rw/work /media/root-rw/root
mount -t overlay -o lowerdir=/media/root-ro,upperdir=/media/root-rw/root,workdir=/media/root-rw/work overlayfs $sysroot
else
- if [ $rootfstype = "zfs" ]; then
+ if [ "$rootfstype" = "zfs" ]; then
prepare_zfs_root
fi
mount ${rootfstype:+-t} ${rootfstype} \