Skip to content

Commit

Permalink
Merge pull request #209 from leomeinel/temp
Browse files Browse the repository at this point in the history
Merge main from temp
  • Loading branch information
leomeinel authored Apr 29, 2023
2 parents 58e6c29 + 80b8388 commit 2626312
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 149 deletions.
2 changes: 1 addition & 1 deletion etc/pacman.d/hooks/50-log-orphans.hook
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Trigger]
Operation = Install
Operation = Remove
Operation = Upgrade
Operation = Remove
Type = Package
Target = *

Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions etc/pacman.d/hooks/60-dracut-uefi-remove.hook
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
16 changes: 16 additions & 0 deletions etc/pacman.d/hooks/90-dracut-uefi-install.hook
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
26 changes: 0 additions & 26 deletions etc/pacman.d/hooks/91-dracut-uefi-install

This file was deleted.

10 changes: 0 additions & 10 deletions etc/pacman.d/hooks/92-dracut-uefi-remove

This file was deleted.

1 change: 1 addition & 0 deletions etc/pacman.d/hooks/96-systemd-boot-sign.hook
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = linux
Target = linux-lts
Expand Down
18 changes: 18 additions & 0 deletions etc/pacman.d/hooks/scripts/60-dracut-uefi-remove.sh
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
17 changes: 17 additions & 0 deletions etc/pacman.d/hooks/scripts/90-dracut-uefi-install.sh
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
112 changes: 0 additions & 112 deletions etc/pacman.d/hooks/scripts/91-dracut-uefi.sh

This file was deleted.

0 comments on commit 2626312

Please sign in to comment.