]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add "plymouth" initrd profile
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 4 Apr 2025 14:25:57 +0000 (16:25 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 8 Apr 2025 15:08:56 +0000 (17:08 +0200)
This initrd profile provides a graphical interface at boot (animation and
password prompt).

Closes #3650

mkosi/config.py
mkosi/resources/man/mkosi-initrd.1.md
mkosi/resources/man/mkosi.1.md
mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf [new file with mode: 0644]
mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-fedora.conf [new file with mode: 0644]
mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-opensuse.conf [new file with mode: 0644]
mkosi/resources/mkosi-initrd/mkosi.profiles/plymouth/mkosi.conf.d/10-ubuntu.conf [new file with mode: 0644]

index d9f966a52177f5f3c11cd9620228edad3d903913..93eb94d3601f73926e818540c57f55a47b3c1c76 100644 (file)
@@ -627,6 +627,7 @@ class ToolsTreeProfile(StrEnum):
 class InitrdProfile(StrEnum):
     lvm = enum.auto()
     pkcs11 = enum.auto()
+    plymouth = enum.auto()
     raid = enum.auto()
 
 
index 8427ba09008fab4d355dc8875b6fec39f49857c9..5131c31025e4d2e48869efcfe2ddec6e66961a5b 100644 (file)
@@ -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`
index 73d134a8e9c3d2f3da1279514e9379853aa94862..1d553727fe724ff7870649d0ecd175e18414f310 100644 (file)
@@ -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 (file)
index 0000000..35c404a
--- /dev/null
@@ -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 (file)
index 0000000..96ecfa4
--- /dev/null
@@ -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 (file)
index 0000000..b1411e9
--- /dev/null
@@ -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 (file)
index 0000000..268577b
--- /dev/null
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=ubuntu
+
+[Content]
+Packages=
+        kbd
+        plymouth-themes
+        plymouth-theme-ubuntu-text