From: Daan De Meyer Date: Fri, 8 Dec 2023 09:13:26 +0000 (+0100) Subject: Share default image configuration between debian and ubuntu X-Git-Tag: v20~92^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd95d578bf5a7f35776a196f2e2d3d98f0ca4ce4;p=thirdparty%2Fmkosi.git Share default image configuration between debian and ubuntu --- diff --git a/mkosi.conf.d/20-debian-ubuntu.conf b/mkosi.conf.d/20-debian-ubuntu.conf new file mode 100644 index 000000000..2aa934627 --- /dev/null +++ b/mkosi.conf.d/20-debian-ubuntu.conf @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=|debian +Distribution=|ubuntu + +[Content] +Packages= + amd64-microcode + apt + bash + btrfs-progs + bubblewrap + ca-certificates + coreutils + cpio + curl + dbus-broker + debian-archive-keyring + dnf + dosfstools + e2fsprogs + erofs-utils + grub-pc + intel-microcode + libtss2-dev + mtools + openssh-client + openssl + ovmf + pacman-package-manager + pesign + python3-cryptography + python3-pefile + qemu-system + sbsigntool + shim-signed + socat + squashfs-tools + strace + swtpm + systemd + systemd-boot + systemd-container + systemd-resolved + systemd-sysv + tar + tzdata + udev + uidmap + util-linux + xfsprogs + xz-utils + zstd + zypper diff --git a/mkosi.conf.d/20-debian.conf b/mkosi.conf.d/20-debian.conf index 441068914..cd0df3257 100644 --- a/mkosi.conf.d/20-debian.conf +++ b/mkosi.conf.d/20-debian.conf @@ -9,50 +9,4 @@ Repositories=non-free-firmware [Content] Packages= - amd64-microcode - apt - bash - btrfs-progs - bubblewrap - ca-certificates - coreutils - cpio - curl - dbus-broker - debian-archive-keyring - dnf - dosfstools - e2fsprogs - erofs-utils - grub-pc - intel-microcode - libtss2-dev linux-image-cloud-amd64 - mtools - openssh-client - openssl - ovmf - pacman-package-manager - pesign - python3-cryptography - python3-pefile - qemu-system - sbsigntool - socat - squashfs-tools - strace - swtpm - systemd - systemd-boot - systemd-container - systemd-resolved - systemd-sysv - tar - tzdata - udev - uidmap - util-linux - xfsprogs - xz-utils - zstd - zypper diff --git a/mkosi.conf.d/20-ubuntu.conf b/mkosi.conf.d/20-ubuntu.conf index cf317fab8..aac6f28ab 100644 --- a/mkosi.conf.d/20-ubuntu.conf +++ b/mkosi.conf.d/20-ubuntu.conf @@ -9,15 +9,4 @@ Repositories=universe [Content] Packages= - amd64-microcode - apt - dbus-broker - grub-pc - intel-microcode - linux-image-generic # TODO: Switch to linux-kvm once it supports reading credentials from SMBIOS. - systemd - systemd-boot - systemd-sysv - tzdata - udev - zypper + linux-image-generic # TODO: Switch to linux-virtual once it supports reading credentials from SMBIOS. diff --git a/tests/test_initrd.py b/tests/test_initrd.py index 683b139ab..f16fcdc17 100644 --- a/tests/test_initrd.py +++ b/tests/test_initrd.py @@ -81,7 +81,7 @@ def test_initrd_lvm(initrd: Image) -> None: drive = Path(image.output_dir.name) / "image.raw" drive.touch() - os.truncate(drive, 3000 * 1024**2) + os.truncate(drive, 5000 * 1024**2) lodev = run(["losetup", "--show", "--find", "--partscan", drive], stdout=subprocess.PIPE).stdout.strip() stack.callback(lambda: run(["losetup", "--detach", lodev])) @@ -184,7 +184,7 @@ def test_initrd_luks_lvm(initrd: Image, passphrase: Path) -> None: drive = Path(image.output_dir.name) / "image.raw" drive.touch() - os.truncate(drive, 3000 * 1024**2) + os.truncate(drive, 5000 * 1024**2) lodev = run(["losetup", "--show", "--find", "--partscan", drive], stdout=subprocess.PIPE).stdout.strip() stack.callback(lambda: run(["losetup", "--detach", lodev]))