summaryrefslogtreecommitdiffstats
path: root/mkosi.images/exitrd/mkosi.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mkosi.images/exitrd/mkosi.conf22
-rw-r--r--mkosi.images/exitrd/mkosi.conf.d/10-arch.conf29
-rw-r--r--mkosi.images/exitrd/mkosi.conf.d/10-centos-fedora.conf9
-rw-r--r--mkosi.images/exitrd/mkosi.conf.d/10-debian-ubuntu.conf (renamed from mkosi.images/base/mkosi.conf.d/10-debian.conf)8
-rw-r--r--mkosi.images/exitrd/mkosi.conf.d/10-opensuse.conf (renamed from mkosi.images/initrd/mkosi.conf.d/10-opensuse.conf)7
5 files changed, 65 insertions, 10 deletions
diff --git a/mkosi.images/exitrd/mkosi.conf b/mkosi.images/exitrd/mkosi.conf
new file mode 100644
index 0000000..2e867cb
--- /dev/null
+++ b/mkosi.images/exitrd/mkosi.conf
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Config]
+ConfigureScripts=
+
+[Output]
+Format=directory
+
+[Content]
+Bootable=no
+@Locale=C.UTF-8
+WithDocs=no
+CleanPackageMetadata=yes
+MakeInitrd=yes
+
+BuildSources=
+Packages=
+BuildPackages=
+VolatilePackages=
+
+Packages=
+ bash
diff --git a/mkosi.images/exitrd/mkosi.conf.d/10-arch.conf b/mkosi.images/exitrd/mkosi.conf.d/10-arch.conf
new file mode 100644
index 0000000..c8b1904
--- /dev/null
+++ b/mkosi.images/exitrd/mkosi.conf.d/10-arch.conf
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=arch
+
+[Content]
+Packages=
+ systemd
+
+RemoveFiles=
+ # Arch Linux doesn't split their gcc-libs package so we manually remove
+ # unneeded stuff here to make sure it doesn't end up in the image.
+ /usr/lib/libgfortran.so*
+ /usr/lib/libgo.so*
+ /usr/lib/libgomp.so*
+ /usr/lib/libgphobos.so*
+ /usr/lib/libobjc.so*
+ /usr/lib/libgdruntime.so*
+
+ # Remove all files that are only required for development.
+ /usr/lib/*.a
+ /usr/include/*
+
+ /usr/share/i18n/*
+ /usr/share/hwdata/*
+ /usr/share/iana-etc/*
+ /usr/share/locale/*
+ /usr/share/terminfo/*
+ /usr/share/zoneinfo/*
diff --git a/mkosi.images/exitrd/mkosi.conf.d/10-centos-fedora.conf b/mkosi.images/exitrd/mkosi.conf.d/10-centos-fedora.conf
new file mode 100644
index 0000000..8458dee
--- /dev/null
+++ b/mkosi.images/exitrd/mkosi.conf.d/10-centos-fedora.conf
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=|centos
+Distribution=|fedora
+
+[Content]
+Packages=
+ systemd-standalone-shutdown
diff --git a/mkosi.images/base/mkosi.conf.d/10-debian.conf b/mkosi.images/exitrd/mkosi.conf.d/10-debian-ubuntu.conf
index 020b02b..babde60 100644
--- a/mkosi.images/base/mkosi.conf.d/10-debian.conf
+++ b/mkosi.images/exitrd/mkosi.conf.d/10-debian-ubuntu.conf
@@ -1,11 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Match]
-Distribution=debian
+Distribution=|debian
+Distribution=|ubuntu
[Content]
Packages=
- libbpf1
-
-BuildPackages=
- bpftool
+ systemd
diff --git a/mkosi.images/initrd/mkosi.conf.d/10-opensuse.conf b/mkosi.images/exitrd/mkosi.conf.d/10-opensuse.conf
index 5cf2df3..3f6df21 100644
--- a/mkosi.images/initrd/mkosi.conf.d/10-opensuse.conf
+++ b/mkosi.images/exitrd/mkosi.conf.d/10-opensuse.conf
@@ -3,9 +3,6 @@
[Match]
Distribution=opensuse
-[Output]
-CompressOutput=zst
-
[Content]
-Packages=btrfs-progs
- tpm2.0-tools
+Packages=
+ systemd