diff --git a/usr/share/libalpm/hooks/10-dracut-initramfs-pre-install.hook b/usr/share/libalpm/hooks/10-dracut-initramfs-pre-install.hook index bc147dc..84cb210 100644 --- a/usr/share/libalpm/hooks/10-dracut-initramfs-pre-install.hook +++ b/usr/share/libalpm/hooks/10-dracut-initramfs-pre-install.hook @@ -12,4 +12,4 @@ Target = usr/src/*/dkms.conf [Action] Description = Ensure ESP is mounted... When = PreTransaction -Exec = /usr/bin/bash /usr/bin/dracut-initramfs -x +Exec = /bin/sh -c "/usr/bin/dracut-initramfs -x" diff --git a/usr/share/libalpm/hooks/60-dracut-initramfs-remove.hook b/usr/share/libalpm/hooks/60-dracut-initramfs-remove.hook index 5a8eb00..7d5e86d 100644 --- a/usr/share/libalpm/hooks/60-dracut-initramfs-remove.hook +++ b/usr/share/libalpm/hooks/60-dracut-initramfs-remove.hook @@ -7,5 +7,5 @@ Target = usr/src/*/dkms.conf [Action] Description = Removing linux images... When = PreTransaction -Exec = /usr/bin/bash /usr/bin/dracut-initramfs -y +Exec = /bin/sh -c "/usr/bin/dracut-initramfs -y" NeedsTargets diff --git a/usr/share/libalpm/hooks/90-dracut-initramfs-install.hook b/usr/share/libalpm/hooks/90-dracut-initramfs-install.hook index 82c4194..ff55043 100644 --- a/usr/share/libalpm/hooks/90-dracut-initramfs-install.hook +++ b/usr/share/libalpm/hooks/90-dracut-initramfs-install.hook @@ -12,5 +12,5 @@ Target = usr/src/*/dkms.conf [Action] Description = Updating linux images... When = PostTransaction -Exec = /usr/bin/bash /usr/bin/dracut-initramfs -z +Exec = /bin/sh -c "/usr/bin/dracut-initramfs -z" NeedsTargets