From fcc91854ada6648fcdbf6f3f0d04e0f7a5b4f107 Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Mon, 14 Jun 2021 18:14:40 +0200 Subject: [PATCH] Backports: Simplify GRUB Perl command --- install-zfs.backports.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-zfs.backports.sh b/install-zfs.backports.sh index fb8749c..d8b0db4 100755 --- a/install-zfs.backports.sh +++ b/install-zfs.backports.sh @@ -1403,7 +1403,7 @@ function prepare_efi_partition { function configure_and_update_grub { chroot_execute "perl -i -pe 's/GRUB_CMDLINE_LINUX_DEFAULT=\"\K/init_on_alloc=0 /' /etc/default/grub" - chroot_execute "perl -i -pe 's/(GRUB_CMDLINE_LINUX=\")/\${1}root=ZFS=$v_rpool_name /' /etc/default/grub" + chroot_execute "perl -i -pe 's/GRUB_CMDLINE_LINUX=\"\K/root=ZFS=$v_rpool_name /' /etc/default/grub" # Silence warning during the grub probe (source: https://git.io/JenXF). #