From c6143538149505bb21573859c0a4dc3a8c8a5f73 Mon Sep 17 00:00:00 2001 From: Sandybunting <42874530+Sandybunting@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:18:08 +0100 Subject: [PATCH 1/4] Update postinstall.md for LUKS on EndeavourOS Added a bullet point to the 'Making modules load on early boot' section to share the method I used to make the apple-bce module load early on EndeavourOS (which uses dracut, not mkinitcpio) so that the hard drive encryption password can be entered on the Apple keyboard. --- docs/guides/postinstall.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/guides/postinstall.md b/docs/guides/postinstall.md index eb37dccd..345a928a 100644 --- a/docs/guides/postinstall.md +++ b/docs/guides/postinstall.md @@ -83,6 +83,16 @@ The steps to be followed vary depending upon the initramfs module loading mechan ``` 3. Run `sudo mkinitcpio -P`. + +- On EndeavourOS, which uses `dracut` + + 1. Create and edit a file at `/etc/dracut.conf.d/myflags.conf`, using e.g. `sudo vim /etc/dracut.conf.d/myflags.conf` + + 2. Add the following line: + + `force_drivers+=" apple-bce "` + + 3. Run `sudo dracut --force` to regenerate the initramfs with this change - On systems with other initramfs/initrd generation systems: From 7b5e9593cb94e690de7008fa5b097f67c6fa8496 Mon Sep 17 00:00:00 2001 From: Sandybunting <42874530+Sandybunting@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:36:41 +0100 Subject: [PATCH 2/4] Some clean-up edits to the previous commit --- docs/guides/postinstall.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/guides/postinstall.md b/docs/guides/postinstall.md index 345a928a..e516bb69 100644 --- a/docs/guides/postinstall.md +++ b/docs/guides/postinstall.md @@ -84,15 +84,15 @@ The steps to be followed vary depending upon the initramfs module loading mechan 3. Run `sudo mkinitcpio -P`. -- On EndeavourOS, which uses `dracut` +- On systems with `dracut` (common examples include EndeavourOS and Fedora) - 1. Create and edit a file at `/etc/dracut.conf.d/myflags.conf`, using e.g. `sudo vim /etc/dracut.conf.d/myflags.conf` - - 2. Add the following line: + 1. Create a dracut configuration file which loads the apple-bce module on early boot: - `force_drivers+=" apple-bce "` - - 3. Run `sudo dracut --force` to regenerate the initramfs with this change + ```sh + echo "force_drivers+=\" apple-bce \"" | sudo tee /etc/dracut.conf.d/myflags.conf + ``` + + 2. Run `sudo dracut --force` to regenerate the initramfs with this change. - On systems with other initramfs/initrd generation systems: From d57a04deb451259ae467162f8eb0026a7bccdce3 Mon Sep 17 00:00:00 2001 From: Aditya Garg <85610623+AdityaGarg8@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:16:04 +0530 Subject: [PATCH 3/4] Update postinstall.md --- docs/guides/postinstall.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/postinstall.md b/docs/guides/postinstall.md index e516bb69..7f0d4ac5 100644 --- a/docs/guides/postinstall.md +++ b/docs/guides/postinstall.md @@ -84,9 +84,9 @@ The steps to be followed vary depending upon the initramfs module loading mechan 3. Run `sudo mkinitcpio -P`. -- On systems with `dracut` (common examples include EndeavourOS and Fedora) +- On systems with `dracut` (Commonly used on EndeavourOS and Fedora): - 1. Create a dracut configuration file which loads the apple-bce module on early boot: + 1. Run the following to create a dracut configuration file which loads the apple-bce module on early boot: ```sh echo "force_drivers+=\" apple-bce \"" | sudo tee /etc/dracut.conf.d/myflags.conf From 74ea10f9ade032f108057e32e99d3b90484dae49 Mon Sep 17 00:00:00 2001 From: Sandybunting <42874530+Sandybunting@users.noreply.github.com> Date: Thu, 11 Apr 2024 13:29:24 +0100 Subject: [PATCH 4/4] Final touches I *think* I've found all the trailing spaces (serves me right for being lazy and doing these edits in the GitHub web interface..) --- docs/guides/postinstall.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/postinstall.md b/docs/guides/postinstall.md index 7f0d4ac5..b948742c 100644 --- a/docs/guides/postinstall.md +++ b/docs/guides/postinstall.md @@ -83,15 +83,15 @@ The steps to be followed vary depending upon the initramfs module loading mechan ``` 3. Run `sudo mkinitcpio -P`. - + - On systems with `dracut` (Commonly used on EndeavourOS and Fedora): 1. Run the following to create a dracut configuration file which loads the apple-bce module on early boot: ```sh - echo "force_drivers+=\" apple-bce \"" | sudo tee /etc/dracut.conf.d/myflags.conf + echo "force_drivers+=\" apple-bce \"" | sudo tee /etc/dracut.conf.d/t2linux-modules.conf ``` - + 2. Run `sudo dracut --force` to regenerate the initramfs with this change. - On systems with other initramfs/initrd generation systems: