Cannot boot on Apple hardware when installing to encrypted root partition.
1 Attachment(s)
I am trying to install Slackware 15.0 on my 2011 MacBook Pro. I am able to do this without any problems when I do not encrypt my root partition. However, if I try to install onto an encrypted root partition then I get stuck on this screen when I boot:
Attachment 39126 I have successfully installed Slackware 15.0 on my main computer (on multiple occasions) using the exact same partition/encryption setup on btrfs using the grub bootloader. In the image you can see that it seems to know to ask for my decryption passphrase, but cannot actually prompt me. Hmm. Next I will walk you through how I went about the installation. Before running the installer I partition my disks. Here is the output of lsblk -f to show how I have done this: Code:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS Next I run the installer. Note that I skip installing lilo/elilo because I am going to use grub. After I successfully run the slackware installer, I go back to the shell, chroot into /mnt, setup my /etc/fstab, and run the following commands before rebooting: # /usr/share/mkinitrd/mkinitrd_command_generator.sh | sh Code:
OK: /lib/modules/5.15.19/kernel/drivers/usb/storage/usb-storage.ko added. Code:
Installing for x86_64-efi platform. Code:
Generating grub configuration file ... Code:
UUID=81b1cb8e-7ec4-43a9-928c-136931e20e0d / btrfs rw,noatime,compress=zstd,space_cache=v2,commit=120,subvol=@ 0 1 Please note that when I get this machine setup I will refer to it as my slackmac. |
Maybe you need a specific module for your USB keyboard in the initramfs built by mkinitrd_command_generator.sh or something like that.
|
Quote:
|
I now use dracut. It ships a lot of modules so the risk you miss one is low.
|
From the image it looks like the correct module for the usb keyboard is being loaded, and the boot is stuck at the "Enter passphrase for /dev/sda3:" prompt.
The prompt itself is hidden behind some of the output related to the usb keyboard being detected. Did you try just writing the password? Does it work if you connect an external usb keyboard? |
Quote:
However, I tried plugging in my external logitech keyboard as you suggested, and it worked! This strongly suggests that the problem is indeed centered around keyboard modules. I am going to look into setting up dracut now. |
I solved the problem! The missing module was called hid_apple. To add this module to the initrd I ran -
Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -m hid_apple | sh |
I'm running both Slackware64 versions 14.2 and 15.0 on my 2012 MacBook Pros. This problem bit me as well. (And it took me way too long to figure it out!) My solution is to use the following to make my initrd:
Code:
mkinitrd -c -k 5.15.49 -m xhci-pci:xhci-hcd:ehci-pci:i2c_i801:sdhci_pci:agpgart:i915:sdhci:i2c_algo_bit:i2c_core:mmc_core:tg3:libphy:bcma:hwmon:ptp:pps_core:acpi_als:kfifo_buf:industrialio:fjes:video:button:processor:loop:ehci-hcd:hid:usbhid:hid-generic:hid_apple:hid_appleir:applesmc:mbcache:jbd2:drm:swap -f ext4 -C /dev/sda2 -r /dev/cryptvg/root -u -L -h /dev/cryptvg/swap -o /boot/initrd51549.gz You'll also need to install a daemon to run the fans on the MBP. I use mbpfan and have a SlackBuild if you want it. There are a few other little quirks that I've solved, too. |
Here:
Code:
root[/]# lsinitrd |grep hid-apple.ko Code:
dracut Code:
dracut -H |
All times are GMT -5. The time now is 08:33 AM. |