]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop [Partition] group
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 2 Apr 2023 15:24:57 +0000 (17:24 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Apr 2023 18:31:50 +0000 (20:31 +0200)
Only remaining setting in it was BaseImage=, which fits better in
[Content] so let's drop [Partition] and move BaseImage= to [Content].

mkosi.md
mkosi/__init__.py

index 0e1ad44589aec1d5c83000854f72ce7ff5d995f3..bbe8fd1622ab4b5c2f0fd9ed651e8543851e40d0 100644 (file)
--- a/mkosi.md
+++ b/mkosi.md
@@ -733,10 +733,6 @@ a boolean argument: either "1", "yes", or "true" to enable, or "0",
   an `mkosi.nspawn` file found in the local directory it is
   automatically used for this purpose.
 
-<!-- FIXME: shouldn't this be in [Host] ? -->
-
-### [Partitions] Section
-
 `BaseImage=`, `--base-image=`
 
 : Use the specified directory or file system image as the base image,
index de517ebc1774911b10c5a2b6edfbbd410547f45e..4a864347ea1bbcf0bb3177684dfa0baca855cec6 100644 (file)
@@ -1734,12 +1734,12 @@ def create_parser() -> ArgumentParserMkosi:
         type=Path,
         metavar="PATH",
     )
-
-    group = parser.add_argument_group("Partitions options")
-    group.add_argument('--base-image',
-                       help='Use the given image as base (e.g. lower sysext layer)',
-                       type=Path,
-                       metavar='IMAGE')
+    group.add_argument(
+        '--base-image',
+        help='Use the given image as base (e.g. lower sysext layer)',
+        type=Path,
+        metavar='IMAGE'
+    )
 
     group = parser.add_argument_group("Validation options")
     group.add_argument(