]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix typos identified by codespell
authorDavid Runge <dave@sleepmap.de>
Wed, 18 Sep 2024 11:30:34 +0000 (13:30 +0200)
committerDavid Runge <dave@sleepmap.de>
Wed, 18 Sep 2024 11:36:00 +0000 (13:36 +0200)
Signed-off-by: David Runge <dave@sleepmap.de>
NEWS.md
mkosi/__init__.py
mkosi/config.py
mkosi/distributions/centos.py
mkosi/manifest.py
mkosi/run.py
mkosi/versioncomp.py
tests/test_config.py

diff --git a/NEWS.md b/NEWS.md
index 2766179fd929f836033d67f6b20e5fdb6fb1805e..95f8da062ecfee1931ebe87604519b6281ab00c4 100644 (file)
--- a/NEWS.md
+++ b/NEWS.md
@@ -9,7 +9,7 @@
   running unprivileged instead of using newuidmap/newgidmap. When
   running unprivileged, all files and directories in the image will be
   owned by the invoking user (and by root inside any produced archives).
-  Any attemp to chown files to other users in scripts will fail unless
+  Any attempt to chown files to other users in scripts will fail unless
   the new environment variable `$MKOSI_CHROOT_SUPPRESS_CHOWN` is set to
   a true value.
 - `mkosi` does not drop privileges anymore to the invoking user when
index 30f44084589e487c04e535b40032e9c3d3a6371a..8072cc3081e421695ce0023c3ab0baaed4fd73cc 100644 (file)
@@ -1244,7 +1244,7 @@ def build_default_initrd(context: Context) -> Path:
                 config,
                 workspace=workspace,
                 resources=context.resources,
-                # Re-use the repository metadata snapshot from the main image for the initrd.
+                # Reuse the repository metadata snapshot from the main image for the initrd.
                 metadata_dir=context.metadata_dir,
                 package_dir=context.package_dir,
             )
@@ -2773,7 +2773,7 @@ def make_disk(
 
             if esp or bios:
                 # Even if we're doing BIOS, let's still use the ESP to store the kernels, initrds
-                # and grub modules. We cant use UKIs so we have to put each kernel and initrd on
+                # and grub modules. We can't use UKIs so we have to put each kernel and initrd on
                 # the ESP twice, so let's make the ESP twice as big in that case.
                 (defaults / "00-esp.conf").write_text(
                     textwrap.dedent(
@@ -3394,7 +3394,7 @@ def run_shell(args: Args, config: Config) -> None:
             owner = os.stat(fname).st_uid
             if owner != 0:
                 # Let's allow running a shell in a non-ephemeral image but in that case only map a
-                # single user into the image so it can't get poluted with files or directories
+                # single user into the image so it can't get polluted with files or directories
                 # owned by other users.
                 if args.verb == Verb.shell and config.output_format == OutputFormat.directory and not config.ephemeral:
                     range = 1
@@ -3458,7 +3458,7 @@ def run_shell(args: Args, config: Config) -> None:
             argv = args.cmdline
 
             # When invoked by the kernel, all unknown arguments are passed as environment variables
-            # to pid1. Let's mimick the same behavior when we invoke nspawn as a container.
+            # to pid1. Let's mimic the same behavior when we invoke nspawn as a container.
             for arg in itertools.chain(config.kernel_command_line, config.kernel_command_line_extra):
                 name, sep, value = arg.partition("=")
 
@@ -3912,7 +3912,7 @@ def sync_repository_metadata(args: Args, images: Sequence[Config], *, resources:
     for p in last.distribution.package_manager(last).cache_subdirs(src):
         p.mkdir(parents=True, exist_ok=True)
 
-    # If we're in incremental mode and caching metadata is not explicitly disabled, cache the synced repostory
+    # If we're in incremental mode and caching metadata is not explicitly disabled, cache the synced repository
     # metadata so we can reuse it later.
     if last.incremental and last.cacheonly != Cacheonly.never:
         rmtree(metadata_cache(last), sandbox=last.sandbox)
index e61d5a5455890b2387dbc9c901c0735dbf54a6b5..2eb0cee72314936e64c6e9674233cd07f1d4f514 100644 (file)
@@ -2358,7 +2358,7 @@ SETTINGS = (
         section="Content",
         parse=config_make_list_parser(delimiter=",", parse=make_path_parser()),
         paths=("mkosi.env",),
-        help="Enviroment files to set when running scripts",
+        help="Environment files to set when running scripts",
     ),
     ConfigSetting(
         dest="with_tests",
@@ -2429,7 +2429,7 @@ SETTINGS = (
             "requires a filename with no path components."
         ),
         # The default value is set in `__init__.py` in `install_uki`.
-        # `None` is used to determin if the roothash and boot count format
+        # `None` is used to determine if the roothash and boot count format
         # should be appended to the filename if they are found.
         #default=
         help="Specify the format used for the UKI filename",
@@ -3899,9 +3899,9 @@ def parse_config(argv: Sequence[str] = (), *, resources: Path = Path("/")) -> tu
 
     # If Dependencies= was not explicitly specified on the CLI or in the configuration,
     # we want to default to all subimages. However, if a subimage has a [Match] section
-    # and does not succesfully match, we don't want to add it to the default dependencies.
+    # and does not successfully match, we don't want to add it to the default dependencies.
     # To make this work, we can't use default_factory as it is evaluated too early, so
-    # we check here to see if dependendencies were explicitly provided and if not we gather
+    # we check here to see if dependencies were explicitly provided and if not we gather
     # the list of default dependencies while we parse the subimages.
     dependencies: Optional[list[str]] = (
         None
index e6278e31c6fbe1aa26a76cf8d923ccb5e570699f..67e309bbd46d3562663bf28a39fec16582e5f7a0 100644 (file)
@@ -210,7 +210,7 @@ class Installer(DistributionInstaller):
             ):
                 # For EPEL we make the assumption that epel is mirrored in the parent directory of the mirror URL and
                 # path we were given. Since this doesn't work for all scenarios, we also allow overriding the mirror
-                # via ane environment variable.
+                # via an environment variable.
                 url = context.config.environment.get("EPEL_MIRROR", join_mirror(mirror, "../fedora"))
                 yield RpmRepository(
                     repo,
index 36273ccb8c699bd3a9db04b720fab2c658831ef0..eebecff60bee7ae614e2741ca01bfdae015eda62 100644 (file)
@@ -212,7 +212,7 @@ class Manifest:
                 # Yes, --quiet is specified twice, to avoid output about download stats. Note that the argument of the
                 # 'changelog' verb is the binary package name, not the source package name. We also have to set "Dir"
                 # explicitly because apt has no separate option to configure the changelog directory. Apt.invoke()
-                # sets all options that are interpreted relative to Dir to absolute paths by default so this is afe.
+                # sets all options that are interpreted relative to Dir to absolute paths by default so this is safe.
                 result = Apt.invoke(
                     self.context,
                     "changelog",
index 42bc0c76cfcf3f41fc147f7f3ab3848adc457118..64020adfcdef6c801fa88584b3d2f62ff0a2a28e 100644 (file)
@@ -331,8 +331,8 @@ def find_binary(*names: PathString, root: Path = Path("/"), extra: Sequence[Path
 
 class AsyncioThread(threading.Thread):
     """
-    The default threading.Thread() is not interruptable, so we make our own version by using the concurrency
-    feature in python that is interruptable, namely asyncio.
+    The default threading.Thread() is not interruptible, so we make our own version by using the concurrency
+    feature in python that is interruptible, namely asyncio.
 
     Additionally, we store any exception that the coroutine raises and re-raise it in join() if no other
     exception was raised before.
index 41619c33d9d4a4c3af50dcfa334d1103b6ef8f85..8e2e064236690a2ff27cb0bbca1be602fe7d264a 100644 (file)
@@ -8,7 +8,7 @@ from typing import Final
 
 @functools.total_ordering
 class GenericVersion:
-    # These constants follow the convention of the return value of rpmdev-vercmp that are followe
+    # These constants follow the convention of the return value of rpmdev-vercmp that are followed
     # by systemd-analyze compare-versions when called with only two arguments (without a comparison
     # operator), recreated in the compare_versions method.
     _EQUAL: Final[int] = 0
index 8546ac719e07cf888e46818829b2ee9d40d4d6af..3cbdce993b5c31e688816925e4d21c340ef189ba 100644 (file)
@@ -291,7 +291,7 @@ def test_parse_config(tmp_path: Path) -> None:
     assert one.image_version == "1.2.3"
     assert two.image_version == "4.5.6"
 
-    # Default values from subimages for univeral settings should not be picked up.
+    # Default values from subimages for universal settings should not be picked up.
     assert len(one.sandbox_trees) == 0
     assert len(two.sandbox_trees) == 0