sys-firmware/intel-microcode: skip mount-boot phases when initramfs is disabled
authorMike Gilbert <floppym@gentoo.org>
Fri, 12 Jan 2018 18:22:18 +0000 (13:22 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 12 Jan 2018 18:53:28 +0000 (13:53 -0500)
Package-Manager: Portage-2.3.19_p11, Repoman-2.3.6_p45

sys-firmware/intel-microcode/intel-microcode-20180108-r1.ebuild

index 60ae099579f5a04baeda5f245d3798c1958434bc..c8e8544f58852c53c1a4b10a322640b0aab64350 100644 (file)
@@ -40,6 +40,7 @@ pkg_pretend() {
                ewarn "MICROCODE_SIGNATURES is set!"
                ewarn "The user has decided to install only a SUBSET of microcode."
        fi
+       use initramfs && mount-boot_pkg_pretend
 }
 
 src_install() {
@@ -76,3 +77,19 @@ src_install() {
 
        dodoc releasenote
 }
+
+pkg_preinst() {
+       use initramfs && mount-boot_pkg_preinst
+}
+
+pkg_prerm() {
+       use initramfs && mount-boot_pkg_prerm
+}
+
+pkg_postrm() {
+       use initramfs && mount-boot_pkg_postrm
+}
+
+pkg_postinst() {
+       use initramfs && mount-boot_pkg_postinst
+}