From 506a04bae9e1a3d26267b16037248acc62c8e869 Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Tue, 6 Oct 2020 16:52:10 +0200 Subject: [PATCH] Fix incorrect keyboard layout on boot, when the pool is encrypted There have been a few reported cases of password not being recognized on (the first) boot. It seems that the initramfs must be updated when the system is setup. See https://git.io/JUAOv. --- install-zfs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install-zfs.sh b/install-zfs.sh index 6aa6108..9adf60f 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -1228,6 +1228,15 @@ UNIT" chroot_execute "echo $v_bpool_name /boot zfs nodev,relatime,x-systemd.requires=zfs-import-$v_bpool_name.service 0 0 >> /etc/fstab" } +# This step is important in cases where the keyboard layout is not the standard one. +# See issue https://github.com/saveriomiroddi/zfs-installer/issues/110. +# +function update_initramfs { + print_step_info_header + + chroot_execute "update-initramfs -u" +} + function update_zed_cache_Debian { chroot_execute "mkdir /etc/zfs/zfs-list.cache" chroot_execute "touch /etc/zfs/zfs-list.cache/$v_rpool_name" @@ -1412,6 +1421,7 @@ distro_dependent_invoke "install_jail_zfs_packages" distro_dependent_invoke "install_and_configure_bootloader" sync_efi_partitions configure_boot_pool_import +update_initramfs distro_dependent_invoke "update_zed_cache" --noforce configure_pools_trimming configure_remaining_settings