terem42 / zfs-hetzner-vm

script to install Debian 10, 11, 12 and Ubuntu 18, 20, 22 LTS with ZFS root on Hetzner VPS
165 stars 108 forks source link

default settings break root on zfs after kernel updates #28

Closed lc-guy closed 1 year ago

lc-guy commented 2 years ago

See https://github.com/openzfs/zfs/issues/10355 . REMAKE_INITRD='yes' needs to be added to /etc/dkms/zfs.conf to prevent breakage upon kernel updates, making it impossible to boot. Took a lot of time to debug and fix, annoying.

Also, the grub changes make it impossible to boot into hetzner's rescue mode, requiring a support ticket to change boot order and make it working again. Please fix this.

Unrelated, but there's a stray 18.04 variable in the script:

https://github.com/terem42/zfs-hetzner-vm/blob/c2bd03377dfb2f502ba058c5d9c54447026780e6/hetzner-ubuntu20-zfs-setup.sh#L682

Rocco83 commented 2 years ago

Also, the grub changes make it impossible to boot into hetzner's rescue mode, requiring a support ticket to change boot order and make it working again. Please fix this.

can you elaborate this point? on which OS have you experienced it?

crpb commented 2 years ago

I also just ran into the issue of a non-booting system (Debian Bullseye) after an upgrade of linux-image-amd64. Maybe this will keep the doctor(rescue-shell) away in the future.