From aaa74697a59709daeea33ca6fe24ca1ecad49a0d Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Mon, 28 Nov 2022 01:21:10 -0500 Subject: [PATCH] Quote variables in zfsenv --- debianzfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debianzfs.sh b/debianzfs.sh index 5089c76..43ce545 100755 --- a/debianzfs.sh +++ b/debianzfs.sh @@ -338,7 +338,7 @@ EOF # 4. Bind the virtual filesystems from the LiveCD environment to the new system and chroot into it # Copy DISK/MIRROR vars under ZFSROOT -echo -e "DISK=${DISK}\nROOTPW=${ROOTPW}" > "$ZFSROOT/var/tmp/zfsenv" +echo -e "DISK=\"${DISK}\"\nROOTPW=\"${ROOTPW}\"" > "$ZFSROOT/var/tmp/zfsenv" # Copy self and GRUB mirror helper script into chroot if [ -n "$MIRROR" ]; then