From: Antonio Alvarez Feijoo Date: Fri, 4 Apr 2025 14:25:57 +0000 (+0200) Subject: Add "plymouth" initrd profile X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6a603a21aa00d4e4c3480b55bae598ac16a4f4c;p=thirdparty%2Fmkosi.git Add "plymouth" initrd profile This initrd profile provides a graphical interface at boot (animation and password prompt). Closes #3650 --- diff --git a/mkosi/config.py b/mkosi/config.py index d9f966a52..93eb94d36 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -627,6 +627,7 @@ class ToolsTreeProfile(StrEnum): class InitrdProfile(StrEnum): lvm = enum.auto() pkcs11 = enum.auto() + plymouth = enum.auto() raid = enum.auto() diff --git a/mkosi/resources/man/mkosi-initrd.1.md b/mkosi/resources/man/mkosi-initrd.1.md index 8427ba090..5131c3102 100644 --- a/mkosi/resources/man/mkosi-initrd.1.md +++ b/mkosi/resources/man/mkosi-initrd.1.md @@ -46,6 +46,8 @@ initrds and Unified Kernel Images for the current running system. The `lvm` profile enables support for LVM. The `pkcs11` profile enables support for PKCS#11. + The `plymouth` profile provides a graphical interface at boot (animation and + password prompt). The `raid` profile enables support for RAID arrays. `--debug` diff --git a/mkosi/resources/man/mkosi.1.md b/mkosi/resources/man/mkosi.1.md index 73d134a8e..1d553727f 100644 --- a/mkosi/resources/man/mkosi.1.md +++ b/mkosi/resources/man/mkosi.1.md @@ -1043,6 +1043,8 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`, The `lvm` profile enables support for LVM. The `pkcs11` profile enables support for PKCS#11. + The `plymouth` profile provides a graphical interface at boot (animation and + password prompt). The `raid` profile enables support for RAID arrays. `InitrdPackages=`, `--initrd-package=` diff --git a/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf new file mode 100644 index 000000000..35c404aaf --- /dev/null +++ b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Content] +Packages=plymouth diff --git a/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-fedora.conf b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-fedora.conf new file mode 100644 index 000000000..96ecfa419 --- /dev/null +++ b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-fedora.conf @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=fedora + +[Content] +Packages= + abattis-cantarell-fonts + plymouth-system-theme diff --git a/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-opensuse.conf b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-opensuse.conf new file mode 100644 index 000000000..b1411e969 --- /dev/null +++ b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-opensuse.conf @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=opensuse + +[Content] +Packages= + cantarell-fonts + distribution-logos-openSUSE-Tumbleweed + plymouth-branding-openSUSE diff --git a/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-ubuntu.conf b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-ubuntu.conf new file mode 100644 index 000000000..268577b94 --- /dev/null +++ b/mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-ubuntu.conf @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Distribution=ubuntu + +[Content] +Packages= + kbd + plymouth-themes + plymouth-theme-ubuntu-text