From 47d147c172c019f40acd955f5e72482495925e92 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 20 Oct 2018 08:25:53 +0100 Subject: sys-boot/dracut-config-redcore : make sure /etc/fstab is installed into initrd, prevent qemu to be installed --- .../dracut-config-redcore-1337-r3.exheres-0 | 53 ---------------------- .../dracut-config-redcore-1337-r4.exheres-0 | 53 ++++++++++++++++++++++ .../files/redcore-dracut.conf | 5 +- 3 files changed, 57 insertions(+), 54 deletions(-) delete mode 100644 packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r3.exheres-0 create mode 100644 packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0 diff --git a/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r3.exheres-0 b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r3.exheres-0 deleted file mode 100644 index 23df176..0000000 --- a/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r3.exheres-0 +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2018 Redcore Linux Project -# Distributed under the terms of the GNU General Public License v2 - -SUMMARY="Redcore Linux Project dracut config" -DESCRIPTION="Dracut configuration file for Redcore Linux Project" -HOMEPAGE="https://redcorelinux.org" - -LICENCES="GPL-2" -SLOT="0" -PLATFORMS="~amd64" -MYOPTIONS="" - -DEPENDENCIES=" - run: - firmware/intel-microcode [[ - description = [ early microcode for Intel CPU's ] - ]] - firmware/linux-firmware [[ - description = [ early microcode for AMD CPU's ] - ]] -" - -WORK="${FILES}" - -src_prepare() { - : -} - -src_configure() { - : -} - -src_compile() { - : -} - -src_install() { - dodir /etc/dracut.conf.d - insinto /etc/dracut.conf.d - newins "${FILES}"/redcore-dracut.conf redcore-dracut.conf.example -} - -pkg_preinst() { - if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then - edo mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" - fi -} - -pkg_postinst() { - if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ]]; then - edo mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" - fi -} diff --git a/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0 b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0 new file mode 100644 index 0000000..23df176 --- /dev/null +++ b/packages/sys-boot/dracut-config-redcore/dracut-config-redcore-1337-r4.exheres-0 @@ -0,0 +1,53 @@ +# Copyright 2018 Redcore Linux Project +# Distributed under the terms of the GNU General Public License v2 + +SUMMARY="Redcore Linux Project dracut config" +DESCRIPTION="Dracut configuration file for Redcore Linux Project" +HOMEPAGE="https://redcorelinux.org" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES=" + run: + firmware/intel-microcode [[ + description = [ early microcode for Intel CPU's ] + ]] + firmware/linux-firmware [[ + description = [ early microcode for AMD CPU's ] + ]] +" + +WORK="${FILES}" + +src_prepare() { + : +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + dodir /etc/dracut.conf.d + insinto /etc/dracut.conf.d + newins "${FILES}"/redcore-dracut.conf redcore-dracut.conf.example +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then + edo mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" + fi +} + +pkg_postinst() { + if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ]]; then + edo mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.bak" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" + fi +} diff --git a/packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf b/packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf index 3670082..971796c 100644 --- a/packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf +++ b/packages/sys-boot/dracut-config-redcore/files/redcore-dracut.conf @@ -8,4 +8,7 @@ early_microcode="yes" add_dracutmodules+=" drm plymouth " # Dracut modules to ommit when building the initramfs. -omit_dracutmodules+=" systemd systemd-bootchart systemd-initrd systemd-networkd dracut-systemd " +omit_dracutmodules+=" systemd systemd-bootchart systemd-initrd systemd-networkd dracut-systemd qemu qemu-net " + +# Force install /etc/fstab +install_items+=" /etc/fstab " -- cgit v1.2.3