From 07d6e730e619bacd1e7464ea1e8759afb672635e Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 2 Dec 2023 10:03:40 -0500 Subject: [PATCH] zfsbootmenu-preinit: single-quote values written to /etc/zfsbootmenu.conf These values are interpolated during preinit when they are written, so the file will only contain string literals that should not be further interpreted. This also works around an issue where appending '\' to parameters (e.g., 'zbm.prefer=pool\' on the command line) would cause a parsing error while sourcing the configuration. --- zfsbootmenu/pre-init/zfsbootmenu-preinit.sh | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/zfsbootmenu/pre-init/zfsbootmenu-preinit.sh b/zfsbootmenu/pre-init/zfsbootmenu-preinit.sh index e6c0f3ebf..0ed4760ec 100755 --- a/zfsbootmenu/pre-init/zfsbootmenu-preinit.sh +++ b/zfsbootmenu/pre-init/zfsbootmenu-preinit.sh @@ -21,19 +21,19 @@ export BASE="/zfsbootmenu" # shellcheck disable=SC2154 cat >> "/etc/zfsbootmenu.conf" <