From fc53809803cd2bc2434e312b19a18fa36776da12 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 05:50:40 +0200 Subject: Adding upstream version 256. Signed-off-by: Daniel Baumann --- mkosi.images/minimal-base/mkosi.conf | 24 +++++++++++++++++ .../minimal-base/mkosi.conf.d/10-arch.conf | 31 ++++++++++++++++++++++ .../mkosi.conf.d/10-centos-fedora.conf | 12 +++++++++ .../mkosi.conf.d/10-debian-ubuntu-opensuse.conf | 12 +++++++++ .../minimal-base/mkosi.conf.d/10-opensuse.conf | 11 ++++++++ .../minimal-base/mkosi.extra/etc/os-release | 1 + .../minimal-base/mkosi.extra/etc/resolv.conf | 3 +++ mkosi.images/minimal-base/mkosi.postinst | 11 ++++++++ 8 files changed, 105 insertions(+) create mode 100644 mkosi.images/minimal-base/mkosi.conf create mode 100644 mkosi.images/minimal-base/mkosi.conf.d/10-arch.conf create mode 100644 mkosi.images/minimal-base/mkosi.conf.d/10-centos-fedora.conf create mode 100644 mkosi.images/minimal-base/mkosi.conf.d/10-debian-ubuntu-opensuse.conf create mode 100644 mkosi.images/minimal-base/mkosi.conf.d/10-opensuse.conf create mode 120000 mkosi.images/minimal-base/mkosi.extra/etc/os-release create mode 100644 mkosi.images/minimal-base/mkosi.extra/etc/resolv.conf create mode 100755 mkosi.images/minimal-base/mkosi.postinst (limited to 'mkosi.images/minimal-base') diff --git a/mkosi.images/minimal-base/mkosi.conf b/mkosi.images/minimal-base/mkosi.conf new file mode 100644 index 0000000..7eb1473 --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.conf @@ -0,0 +1,24 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Config] +ConfigureScripts= + +[Output] +Format=directory + +[Content] +Bootable=no +@Locale=C.UTF-8 +WithDocs=no +CleanPackageMetadata=yes + +BuildSources= +Packages= +BuildPackages= +VolatilePackages= + +Packages= + bash + coreutils + grep + util-linux diff --git a/mkosi.images/minimal-base/mkosi.conf.d/10-arch.conf b/mkosi.images/minimal-base/mkosi.conf.d/10-arch.conf new file mode 100644 index 0000000..9b03397 --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.conf.d/10-arch.conf @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=arch + +[Content] +Packages= + inetutils + iproute + openbsd-netcat + +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/minimal-base/mkosi.conf.d/10-centos-fedora.conf b/mkosi.images/minimal-base/mkosi.conf.d/10-centos-fedora.conf new file mode 100644 index 0000000..3a3e528 --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.conf.d/10-centos-fedora.conf @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=|centos +Distribution=|fedora + +[Content] +Packages= + hostname + iproute + iproute-tc + netcat diff --git a/mkosi.images/minimal-base/mkosi.conf.d/10-debian-ubuntu-opensuse.conf b/mkosi.images/minimal-base/mkosi.conf.d/10-debian-ubuntu-opensuse.conf new file mode 100644 index 0000000..a715ec1 --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.conf.d/10-debian-ubuntu-opensuse.conf @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=|debian +Distribution=|ubuntu + +[Content] +Packages= + hostname + iproute2 + mount + netcat-openbsd diff --git a/mkosi.images/minimal-base/mkosi.conf.d/10-opensuse.conf b/mkosi.images/minimal-base/mkosi.conf.d/10-opensuse.conf new file mode 100644 index 0000000..2e370ec --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.conf.d/10-opensuse.conf @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=opensuse + +[Content] +Packages= + hostname + iproute2 + netcat-openbsd + patterns-base-minimal_base diff --git a/mkosi.images/minimal-base/mkosi.extra/etc/os-release b/mkosi.images/minimal-base/mkosi.extra/etc/os-release new file mode 120000 index 0000000..c4c75b4 --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.extra/etc/os-release @@ -0,0 +1 @@ +../usr/lib/os-release \ No newline at end of file diff --git a/mkosi.images/minimal-base/mkosi.extra/etc/resolv.conf b/mkosi.images/minimal-base/mkosi.extra/etc/resolv.conf new file mode 100644 index 0000000..d2c5ef4 --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.extra/etc/resolv.conf @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +# This is a stub resolv.conf intended as a mountpoint for the host's resolv.conf diff --git a/mkosi.images/minimal-base/mkosi.postinst b/mkosi.images/minimal-base/mkosi.postinst new file mode 100755 index 0000000..c76fb0a --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.postinst @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +# We don't use mkosi.extra because /usr/sbin could be a symlink and cp doesn't handle that properly until +# coreutils 9.5 or newer. +cat >"$BUILDROOT/sbin/init" <