summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 19:51:23 +0200
committerGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-09 19:51:23 +0200
commit6a68249f84ff72e7f38bc0b7edae55c861fdfb3c (patch)
tree44d8b9586a703c3783272e3792e5983d3aff5119
parentbccd41015aaa55d1e661c503e74a414c86290b61 (diff)
downloadmkinitcpio-6a68249f84ff72e7f38bc0b7edae55c861fdfb3c.tar.gz
mkinitcpio-6a68249f84ff72e7f38bc0b7edae55c861fdfb3c.tar.xz
Rename of the hook and script
-rw-r--r--libalpm/hooks/90-mkinitcpio.hook17
-rw-r--r--libalpm/scripts/mkinitcpio.script14
2 files changed, 0 insertions, 31 deletions
diff --git a/libalpm/hooks/90-mkinitcpio.hook b/libalpm/hooks/90-mkinitcpio.hook
deleted file mode 100644
index 7599eae..0000000
--- a/libalpm/hooks/90-mkinitcpio.hook
+++ /dev/null
@@ -1,17 +0,0 @@
-[Trigger]
-Type = Package
-Operation = Install
-Operation = Upgrade
-Target = mkinitcpio*
-
-[Trigger]
-Type = File
-Operation = Install
-Operation = Upgrade
-Target = usr/lib/modules/*/pkgbase
-
-[Action]
-Description = Updating linux initcpios...
-When = PostTransaction
-Exec = /usr/share/libalpm/scripts/mkinitcpio.script
-NeedsTargets
diff --git a/libalpm/scripts/mkinitcpio.script b/libalpm/scripts/mkinitcpio.script
deleted file mode 100644
index 70c9784..0000000
--- a/libalpm/scripts/mkinitcpio.script
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-args=('-p')
-
-while read -r line; do
- if [[ $line = usr/lib/modules/+([^/])/pkgbase ]]; then
- mapfile -O ${#targets[@]} -t targets < "/$line"
- else
- args=('-P') # all presets
- break
- fi
-done
-
-mkinitcpio "${args[@]}" "${targets[@]}"