#1001802 zfs-initramfs: Can't dynamically select snapshot to boot from

#1001802#5
Date:
2021-12-16 15:10:51 UTC
From:
To:
Dear Maintainers,

This issue affects systems with root on ZFS and was initially reported
against the OpenZFS documentation, see
https://github.com/openzfs/openzfs-docs/issues/237.

ZFS initramfs script allows to put a "@" after the `root` parameter in
Grub, so that the user can dynamically select which snapshot to boot
from (see
https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20GNU%20Linux%20initrd%20documentation.html).
However, I noticed two issues in the script:

- while the script indeed waits for user input, snapshots list and
prompt are not displayed to the user
- the script does not check that the value given by the user is valid

Regards,
Yvan

#1001802#10
Date:
2024-02-22 15:27:17 UTC
From:
To:
control: forwarded -1 https://github.com/openzfs/openzfs-docs/issues/237
control: notfound -1 2.0.3-9
prompt are not displayed to the user

Please disable "quiet" in your kernel cmdline, or you won't get stderr from initramfs.

Yes. You can submit an PR to openzfs/zfs, it is located at contrib/initramfs-tools.

Thanks,
Shengqi Chen