Activity log for bug #2042710

Date Who What changed Old value New value Message
2023-11-04 04:20:08 Terence Tan bug added bug
2023-11-06 14:11:52 Benjamin Drung tags foundations-todo
2023-11-06 14:11:58 Benjamin Drung initramfs-tools (Ubuntu): status New Triaged
2023-11-06 14:12:11 Benjamin Drung nominated for series Ubuntu Mantic
2023-11-06 14:12:11 Benjamin Drung bug task added initramfs-tools (Ubuntu Mantic)
2023-11-06 14:12:22 Benjamin Drung initramfs-tools (Ubuntu): importance Undecided High
2023-11-06 14:12:24 Benjamin Drung initramfs-tools (Ubuntu): assignee Benjamin Drung (bdrung)
2023-11-14 01:12:45 Terence Tan attachment added dmesg-without-intel-lpss-pci.txt https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2042710/+attachment/5719167/+files/dmesg-without-intel-lpss-pci.txt
2023-11-14 01:13:09 Terence Tan attachment added dmesg-with-intel-lpss-pci.txt https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2042710/+attachment/5719168/+files/dmesg-with-intel-lpss-pci.txt
2023-11-14 01:14:02 Terence Tan attachment added lspci-dash-vv.txt https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2042710/+attachment/5719169/+files/lspci-dash-vv.txt
2023-11-14 17:18:55 Benjamin Drung initramfs-tools (Ubuntu): status Triaged Fix Committed
2023-11-15 09:41:13 Benjamin Drung description I have a MacBook Pro 2017 (MacBookPro14,1) with an encrypted root partition, which I decrypt via passphrase during boot, at the "Please unlock disk nvme0n1p4_crypt" prompt. Using 23.04 "Lunar" this worked fine. However after upgrading to 23.10 "Mantic", the built-in keyboard doesn't work for entering the passphrase. Quickest workaround: plug in a USB keyboard for entering the passphrase. Workaround: add the following modules to "/etc/initramfs-tools/modules": spi_pxa2xx_platform intel_lpss_pci ... then "sudo update-initramfs -u". I found that both kernel modules were required to get the keyboard recognised in initramfs. I did a bit of digging into what changed for 23.10. It could potentially (?) be commit 2df78bbb143884b9601a32608e12e43d40ccb0b0 "Do not install ARM/RISCV specific modules on other architectures". I had a look into how dracut handles it. Turns out that they specifically include "spi_pxa2xx_platform" after reporting a similar bug report in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2166209 I don't know how (if?) they handle the 2nd module, "intel_lpss_pci". Anyway, I don't need an immediate fix since the workaround works for me. Just posting this for further investigation, and for any other MacBook Pro users in the same situation. Thanks for working on Ubuntu, I think you're all amazing! [ Impact ] I have a MacBook Pro 2017 (MacBookPro14,1) with an encrypted root partition, which I decrypt via passphrase during boot, at the "Please unlock disk nvme0n1p4_crypt" prompt. Using 23.04 "Lunar" this worked fine. However after upgrading to 23.10 "Mantic", the built-in keyboard doesn't work for entering the passphrase. Quickest workaround: plug in a USB keyboard for entering the passphrase. Workaround: add the following modules to "/etc/initramfs-tools/modules": spi_pxa2xx_platform intel_lpss_pci ... then "sudo update-initramfs -u". I found that both kernel modules were required to get the keyboard recognised in initramfs. [ Test Plan ] The -generic kernel and probably all kernel flavors contain the SPI and PCI driver (on amd64). On mantic systems, you can verify the current initrd doesn't contain these modules by decompressing the initramfs and listing its files: $ lsinitramfs /boot/initrd.img-6.5.0-10-generic | grep 'spi-pxa2xx-platform\|intel-lpss-pci' After installing the updated initramfs-tools package, your current initramfs should be automatically rebuilt and pick up the kernel modules: $ lsinitramfs /boot/initrd.img-6.5.0-10-generic | grep 'spi-pxa2xx-platform\|intel-lpss-pci' usr/lib/modules/6.5.0-10-generic/kernel/drivers/mfd/intel-lpss-pci.ko.zst usr/lib/modules/6.5.0-10-generic/kernel/drivers/spi/spi-pxa2xx-platform.ko.zst Test case on MacBook Pro 2017 laptops: Remove all previous workarounds. Install the fixed initramfs-tools version. Then the keyboard should work during boot to enter the passphrase. [ Where problems could occur ] This is making the initramfs slightly bigger. In my testing, both added were 23,852 bytes in total (or 0.02 % on a 102 MB initramfs). [ Remaining original report ] I did a bit of digging into what changed for 23.10. It could potentially (?) be commit 2df78bbb143884b9601a32608e12e43d40ccb0b0 "Do not install ARM/RISCV specific modules on other architectures". I had a look into how dracut handles it. Turns out that they specifically include "spi_pxa2xx_platform" after reporting a similar bug report in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2166209 I don't know how (if?) they handle the 2nd module, "intel_lpss_pci". Anyway, I don't need an immediate fix since the workaround works for me. Just posting this for further investigation, and for any other MacBook Pro users in the same situation. Thanks for working on Ubuntu, I think you're all amazing!
2023-11-15 09:48:49 Benjamin Drung attachment added initramfs-tools_0.142ubuntu15.1.debdiff https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2042710/+attachment/5719505/+files/initramfs-tools_0.142ubuntu15.1.debdiff
2023-11-15 12:16:02 Ubuntu Foundations Team Bug Bot tags foundations-todo foundations-todo patch
2023-11-15 15:42:53 Ubuntu Archive Robot bug added subscriber Benjamin Drung
2023-11-15 17:06:49 Launchpad Janitor initramfs-tools (Ubuntu): status Fix Committed Fix Released
2023-11-16 15:45:52 Benjamin Drung tags foundations-todo patch patch
2023-11-16 15:45:56 Benjamin Drung initramfs-tools (Ubuntu): assignee Benjamin Drung (bdrung)
2023-11-17 12:22:31 Timo Aaltonen initramfs-tools (Ubuntu Mantic): status New Fix Committed
2023-11-17 12:22:32 Timo Aaltonen bug added subscriber Ubuntu Stable Release Updates Team
2023-11-17 12:22:35 Timo Aaltonen bug added subscriber SRU Verification
2023-11-17 12:22:44 Timo Aaltonen tags patch patch verification-needed verification-needed-mantic
2023-11-20 10:00:09 Benjamin Drung tags patch verification-needed verification-needed-mantic patch verification-done verification-done-mantic
2023-11-28 23:54:39 Brian Murray removed subscriber Ubuntu Stable Release Updates Team
2023-11-29 00:04:27 Launchpad Janitor initramfs-tools (Ubuntu Mantic): status Fix Committed Fix Released