* [pve-devel] [PATCH installer] fix 2925: edit /etc/kernel/cmdline unconditionally
@ 2020-08-12 18:12 Stoiko Ivanov
2020-08-13 10:46 ` [pve-devel] applied: " Fabian Grünbichler
0 siblings, 1 reply; 2+ messages in thread
From: Stoiko Ivanov @ 2020-08-12 18:12 UTC (permalink / raw)
To: pve-devel
currently the installer prepares the ESP disks for ZFS, irrespective of the
boot-mode (EFI, legacy) - in order to enable users to change the boot-mode
in the BIOS and keep the system bootable.
This patch updates /etc/kernel/cmdline in both boot-modes, which is necessary
to make the system actually bootable (else the systemd-boot config uses
the cmdline from the installer).
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
steps to reproduce the issue:
* install pve 6.2 with ZFS on root from iso on a seabios vm
* after install stop the VM and change the BIOS to OVMF
* start the vm
proxinstall | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/proxinstall b/proxinstall
index 556c509..c011825 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1737,9 +1737,7 @@ _EOD
syscmd("sed -i -e 's/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"root=ZFS=$zfspoolname\\/ROOT\\/$zfsrootvolname boot=zfs\"/' $targetdir/etc/default/grub") == 0 ||
die "unable to update /etc/default/grub\n";
- if ($boot_type eq 'efi') {
- write_config("root=ZFS=$zfspoolname/ROOT/$zfsrootvolname boot=zfs", "$targetdir/etc/kernel/cmdline");
- }
+ write_config("root=ZFS=$zfspoolname/ROOT/$zfsrootvolname boot=zfs", "$targetdir/etc/kernel/cmdline");
}
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH installer] fix 2925: edit /etc/kernel/cmdline unconditionally
2020-08-12 18:12 [pve-devel] [PATCH installer] fix 2925: edit /etc/kernel/cmdline unconditionally Stoiko Ivanov
@ 2020-08-13 10:46 ` Fabian Grünbichler
0 siblings, 0 replies; 2+ messages in thread
From: Fabian Grünbichler @ 2020-08-13 10:46 UTC (permalink / raw)
To: Proxmox VE development discussion
On August 12, 2020 8:12 pm, Stoiko Ivanov wrote:
> currently the installer prepares the ESP disks for ZFS, irrespective of the
> boot-mode (EFI, legacy) - in order to enable users to change the boot-mode
> in the BIOS and keep the system bootable.
>
> This patch updates /etc/kernel/cmdline in both boot-modes, which is necessary
> to make the system actually bootable (else the systemd-boot config uses
> the cmdline from the installer).
>
> Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> ---
> steps to reproduce the issue:
> * install pve 6.2 with ZFS on root from iso on a seabios vm
> * after install stop the VM and change the BIOS to OVMF
> * start the vm
>
> proxinstall | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/proxinstall b/proxinstall
> index 556c509..c011825 100755
> --- a/proxinstall
> +++ b/proxinstall
> @@ -1737,9 +1737,7 @@ _EOD
> syscmd("sed -i -e 's/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"root=ZFS=$zfspoolname\\/ROOT\\/$zfsrootvolname boot=zfs\"/' $targetdir/etc/default/grub") == 0 ||
> die "unable to update /etc/default/grub\n";
>
> - if ($boot_type eq 'efi') {
> - write_config("root=ZFS=$zfspoolname/ROOT/$zfsrootvolname boot=zfs", "$targetdir/etc/kernel/cmdline");
> - }
> + write_config("root=ZFS=$zfspoolname/ROOT/$zfsrootvolname boot=zfs", "$targetdir/etc/kernel/cmdline");
>
> }
>
> --
> 2.20.1
>
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-13 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 18:12 [pve-devel] [PATCH installer] fix 2925: edit /etc/kernel/cmdline unconditionally Stoiko Ivanov
2020-08-13 10:46 ` [pve-devel] applied: " Fabian Grünbichler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal