From: Kian-Meng Ang Date: Thu, 16 Mar 2023 03:59:53 +0000 (+0800) Subject: Fix typos X-Git-Tag: v15~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=608aaa37d128780dd9b2a7c89c7eecfcd7b18550;p=thirdparty%2Fmkosi.git Fix typos Found via `typos --format brief` --- diff --git a/README.md b/README.md index 9e386b241..f51b47713 100644 --- a/README.md +++ b/README.md @@ -65,5 +65,5 @@ irrelevant code formatting commits. This can be set permanently via the `blame.i # References * [Primary mkosi git repository on GitHub](https://github.com/systemd/mkosi/) -* [mkosi — A Tool for Generating OS Images](http://0pointer.net/blog/mkosi-a-tool-for-generating-os-images.html) indroductory blog post by Lennart Poettering +* [mkosi — A Tool for Generating OS Images](http://0pointer.net/blog/mkosi-a-tool-for-generating-os-images.html) introductory blog post by Lennart Poettering * [The mkosi OS generation tool](https://lwn.net/Articles/726655/) story on LWN diff --git a/docs/initrd.md b/docs/initrd.md index b83a1c5e5..e1e932e21 100644 --- a/docs/initrd.md +++ b/docs/initrd.md @@ -1,7 +1,7 @@ # Building a custom initrd and using it in a mkosi image Building an image with a mkosi-built initrd is a two step process, because you will build two images - the initrd and your distribution image. -1. Build an initrd image using the `cpio` output format with the same target distribtution as you want to use for your distribution image. mkosi compresses the `cpio` output format by default. +1. Build an initrd image using the `cpio` output format with the same target distributions as you want to use for your distribution image. mkosi compresses the `cpio` output format by default. ``` [Output] Format=cpio diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 3828411b5..bae7ad32d 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -3237,7 +3237,7 @@ def run_build_script(state: MkosiState) -> None: with complete_step("Running build script…"), mount_build_overlay(state): # Bubblewrap creates bind mount point parent directories with restrictive permissions so we create - # the work directory outselves here. + # the work directory ourselves here. state.root.joinpath("work").mkdir(mode=0o755) bwrap: list[PathString] = [ diff --git a/mkosi/distributions/gentoo.py b/mkosi/distributions/gentoo.py index 25b443ab0..3da426799 100644 --- a/mkosi/distributions/gentoo.py +++ b/mkosi/distributions/gentoo.py @@ -272,7 +272,7 @@ class Gentoo: package_env.mkdir(exist_ok=True) self.ebuild_sh_env_dir.mkdir(exist_ok=True) - # apply whatever we put in mkosi_conf to runs invokation of emerge + # apply whatever we put in mkosi_conf to runs invocation of emerge package_env.joinpath("mkosi.conf").write_text("*/* mkosi.conf\n") # we use this so we don't need to touch upstream files. diff --git a/mkosi/run.py b/mkosi/run.py index b13586e28..54c428740 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -147,7 +147,7 @@ class RemoteException(Exception): def excepthook(exctype: Type[BaseException], exc: BaseException, tb: Optional[TracebackType]) -> None: - """Attach to sys.excepthook to automically format exceptions with a RemoteException attached correctly.""" + """Attach to sys.excepthook to automatically format exceptions with a RemoteException attached correctly.""" if isinstance(exc.__cause__, RemoteException): print(exc.__cause__, file=sys.stderr) else: