-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from leomeinel/temp
Merge main from temp
- Loading branch information
Showing
10 changed files
with
66 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Trigger] | ||
Type = Path | ||
Operation = Install | ||
Operation = Upgrade | ||
Operation = Remove | ||
Target = usr/lib/modules/*/pkgbase | ||
Target = usr/src/*/dkms.conf | ||
|
||
[Action] | ||
Description = Removing unified EFI kernel images... | ||
When = PreTransaction | ||
Exec = /bin/sh -c '/etc/pacman.d/hooks/scripts/60-dracut-uefi-remove.sh' | ||
NeedsTargets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Trigger] | ||
Type = Path | ||
Operation = Install | ||
Operation = Upgrade | ||
Operation = Remove | ||
Target = usr/lib/modules/*/pkgbase | ||
Target = usr/src/*/dkms.conf | ||
Target = usr/lib/dracut/* | ||
Target = usr/lib/systemd/systemd | ||
Target = usr/lib/systemd/boot/efi/*.efi.stub | ||
|
||
[Action] | ||
Description = Generating unified EFI kernel images... | ||
When = PostTransaction | ||
Exec = /bin/sh -c '/etc/pacman.d/hooks/scripts/90-dracut-uefi-install.sh' | ||
NeedsTargets |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
### | ||
# File: 60-dracut-uefi-remove.sh | ||
# Author: Leopold Meinel (leo@meinel.dev) | ||
# ----- | ||
# Copyright (c) 2023 Leopold Meinel & contributors | ||
# SPDX ID: GPL-3.0-or-later | ||
# URL: https://www.gnu.org/licenses/gpl-3.0-standalone.html | ||
# ----- | ||
### | ||
|
||
set -e | ||
if /usr/bin/mountpoint -q /efi; then | ||
/usr/bin/umount -AR /efi | ||
fi | ||
/usr/bin/mount /efi | ||
shopt -s nocaseglob | ||
/usr/bin/rm -f /efi/EFI/Linux/*.efi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
### | ||
# File: 90-dracut-uefi-install.sh | ||
# Author: Leopold Meinel (leo@meinel.dev) | ||
# ----- | ||
# Copyright (c) 2023 Leopold Meinel & contributors | ||
# SPDX ID: GPL-3.0-or-later | ||
# URL: https://www.gnu.org/licenses/gpl-3.0-standalone.html | ||
# ----- | ||
### | ||
|
||
set -e | ||
if /usr/bin/mountpoint -q /efi; then | ||
/usr/bin/umount -AR /efi | ||
fi | ||
/usr/bin/mount /efi | ||
/usr/bin/dracut --regenerate-all -fq |
This file was deleted.
Oops, something went wrong.