diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2019-12-19 22:39:11 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2019-12-19 22:42:37 +0100 |
commit | 6e5b1852be0247803ea070a6708010a0d3c2bc3e (patch) | |
tree | c51171e7cb840923dc60d1f8b5001889699794c6 /initramfs-init.in | |
parent | 35ec364352a1025a2836397abf9b89f8bb6aed79 (diff) | |
download | mkinitfs-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-x | initramfs-init.in | 2 |
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} \ |