home: hub: mkinitfs

Download patch

ref: 6e5b1852be0247803ea070a6708010a0d3c2bc3e
parent: 35ec364352a1025a2836397abf9b89f8bb6aed79
author: Sören Tempel <soeren+git@soeren-tempel.net>
date: Thu Dec 19 16:39:11 CST 2019

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.

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -503,7 +503,7 @@
 		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} \