]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Rename "storage" initrd profile to "lvm"
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 28 Feb 2025 21:30:06 +0000 (22:30 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 28 Feb 2025 22:21:19 +0000 (23:21 +0100)
Since it actually only provides support for LVM, it's best to keep the different
specific functionalities separate.

REUSE.toml
mkosi.conf
mkosi/config.py
mkosi/resources/man/mkosi-initrd.1.md
mkosi/resources/man/mkosi.1.md
mkosi/resources/mkosi-initrd/mkosi.profiles/lvm/mkosi.conf [moved from mkosi/resources/mkosi-initrd/mkosi.profiles/storage/mkosi.conf with 100% similarity]
mkosi/resources/mkosi-initrd/mkosi.profiles/lvm/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-dm.rules [moved from mkosi/resources/mkosi-initrd/mkosi.profiles/storage/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-dm.rules with 100% similarity]
mkosi/resources/mkosi-initrd/mkosi.profiles/lvm/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-md.rules [moved from mkosi/resources/mkosi-initrd/mkosi.profiles/storage/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-md.rules with 100% similarity]
tests/test_json.py

index 8b566d27f3d0bfd95d9324dad528f00ff1229b33..37ae793f41305ee7f5f6c1d2ed953076ed8008f4 100644 (file)
@@ -44,8 +44,8 @@ SPDX-License-Identifier = "LGPL-2.1-or-later"
 
 [[annotations]]
 path = [
-    "mkosi/resources/mkosi-initrd/mkosi.profiles/storage/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-md.rules",
-    "mkosi/resources/mkosi-initrd/mkosi.profiles/storage/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-dm.rules",
+    "mkosi/resources/mkosi-initrd/mkosi.profiles/lvm/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-md.rules",
+    "mkosi/resources/mkosi-initrd/mkosi.profiles/lvm/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-dm.rules",
 ]
 precedence = "aggregate"
 SPDX-FileCopyrightText = "Mkosi Contributors"
index 8d032d2b6857ca3d83ed53698793740a14872cc2..42c20e8b0f7316e2b8f3efac4b91e35cc73b3b2b 100644 (file)
@@ -29,7 +29,7 @@ Packages=
         tmux
         zsh
 
-InitrdProfiles=storage
+InitrdProfiles=lvm
 InitrdPackages=
         less
 
index a4d774e80bea15c90abf233ccd8d36d59acead29..82d5a5e65f3c77d6d13fc78ebd2e5c9c9dac2889 100644 (file)
@@ -601,7 +601,7 @@ class ToolsTreeProfile(StrEnum):
 
 
 class InitrdProfile(StrEnum):
-    storage = enum.auto()
+    lvm = enum.auto()
 
 
 def expand_delayed_specifiers(specifiers: dict[str, str], text: str) -> str:
index 01fd321955aa305f878ae91d7d9b3841bce5630e..59f1cd2315cf53ce1d9bc82543aed147f3b4f2a2 100644 (file)
@@ -44,8 +44,7 @@ initrds and Unified Kernel Images for the current running system.
 :   Set the profiles to enable for the initrd. By default, all profiles are
     disabled.
 
-    The `storage` profile enables support for advanced storage mechanisms, which
-    currently is limited to LVM.
+    The `lvm` profile enables support for LVM.
 
 `--debug`
 :   Enable additional debugging output.
index fd995bf0b40f17fbaf60e9ba42a878e9617f1612..49d8e0650c721cf1f6d735839bf2735863395614 100644 (file)
@@ -1021,8 +1021,7 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
     comma-delimited list of profiles. By default, all profiles are
     disabled.
 
-    The `storage` profile enables support for advanced storage
-    mechanisms, which currently is limited to LVM.
+    The `lvm` profile enables support for LVM.
 
 `InitrdPackages=`, `--initrd-package=`
 :   Extra packages to install into the default initrd. Takes a comma
index c44153c7281df638eda9b74a3b9adaa8f06f353c..348ac8a0a238fed84b195647d976407186218321 100644 (file)
@@ -197,7 +197,7 @@ def test_config() -> None:
                 "clevis"
             ],
             "InitrdProfiles": [
-                "storage"
+                "lvm"
             ],
             "InitrdVolatilePackages": [
                 "abc"
@@ -490,7 +490,7 @@ def test_config() -> None:
         image="main",
         incremental=Incremental.no,
         initrd_packages=["clevis"],
-        initrd_profiles=[InitrdProfile.storage],
+        initrd_profiles=[InitrdProfile.lvm],
         initrd_volatile_packages=["abc"],
         initrds=[Path("/efi/initrd1"), Path("/efi/initrd2")],
         kernel_command_line_extra=["look", "im", "on", "the", "kernel", "command", "line"],