From a48825d260b71c2123942ae5f52095d8f7571b6f Mon Sep 17 00:00:00 2001 From: Sharpz7 Date: Fri, 26 Jan 2024 04:11:31 +0000 Subject: [PATCH] [codespell] Fixing Spelling Mistakes This is the first in a series of commits to add support for codespell. This is continuning the process completed in ironic-python-agent. Future Commits will add a Tox Target, CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame. Change-Id: I6ce80cc993cdd4c8d38266f3ff3f8f134f0fc5a9 --- .../post-install.d/99-remove-extra-packages | 2 +- dib/ironic-python-agent-tls/README.rst | 2 +- dib/ironic-ramdisk-base/cleanup.d/99-ramdisk-create | 2 +- doc/source/admin/dib.rst | 4 ++-- .../notes/dhcp-predictible-ifnames-b2a1d9e6471b6819.yaml | 2 +- .../notes/remove-PYOPTIMIZE_TINYIPA-ebde63911d140209.yaml | 4 ++-- tinyipa/add-ssh-tinyipa.sh | 2 +- tinyipa/build-tinyipa.sh | 6 +++--- tinyipa/build_files/bootlocal.sh | 2 +- tinyipa/common.sh | 2 +- tinyipa/finalise-tinyipa.sh | 6 +++--- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/dib/ironic-python-agent-ramdisk/post-install.d/99-remove-extra-packages b/dib/ironic-python-agent-ramdisk/post-install.d/99-remove-extra-packages index 1c16394..5ee4375 100755 --- a/dib/ironic-python-agent-ramdisk/post-install.d/99-remove-extra-packages +++ b/dib/ironic-python-agent-ramdisk/post-install.d/99-remove-extra-packages @@ -23,7 +23,7 @@ done case "$DISTRO_NAME" in fedora|centos|rhel) ${YUM:-yum} remove -y postfix gcc make - # Remove webkit... Save ~26MB. This is a ramdisk, not a web brower. + # Remove webkit... Save ~26MB. This is a ramdisk, not a web browser. ${YUM:-yum} remove -y webkit2gtk3-jsc libproxy-webkitgtk4 || true # Remove polkit... Save ~23 MB. This is a ramdisk, not a desktop. ${YUM:-yum} remove -y polkit polkit-libs PackageKit polkit-pkla-compat || true diff --git a/dib/ironic-python-agent-tls/README.rst b/dib/ironic-python-agent-tls/README.rst index d19351e..66c9eb7 100644 --- a/dib/ironic-python-agent-tls/README.rst +++ b/dib/ironic-python-agent-tls/README.rst @@ -7,7 +7,7 @@ If enabled without any environment variables set to modify configuration, this element will enable TLS API support in IPA with a self-signed certificate and key created at build time. -Optionally, you can provide your own SSL certifiate and key, and optionally +Optionally, you can provide your own SSL certificate and key, and optionally ca, via the following environment variables. They should be set to an accessible path on the build systems filesystem. If set, they will be copied into the built ramdisk, and IPA will be configured to use them. diff --git a/dib/ironic-ramdisk-base/cleanup.d/99-ramdisk-create b/dib/ironic-ramdisk-base/cleanup.d/99-ramdisk-create index 6c41994..e1e5dba 100755 --- a/dib/ironic-ramdisk-base/cleanup.d/99-ramdisk-create +++ b/dib/ironic-ramdisk-base/cleanup.d/99-ramdisk-create @@ -28,7 +28,7 @@ sudo ln -s ./sbin/init ./ # long standing systemd bug cases where it may, depending on # underlying OS config/version, try to open the random number # generator before initializing. -# This class of issue has appeared frquently with systemd, +# This class of issue has appeared frequently with systemd, # https://github.com/systemd/systemd/issues/4167 is a commonly # referenced example of this behavior. if ! [ -a ./dev/random ]; then diff --git a/doc/source/admin/dib.rst b/doc/source/admin/dib.rst index b5783ea..51fcfd8 100644 --- a/doc/source/admin/dib.rst +++ b/doc/source/admin/dib.rst @@ -186,7 +186,7 @@ unlikely to be encountered. If you want to override this, change the of directories or files under ``/usr/lib/firmware``. Set it to an empty string to disable firmware removal. -Fimrware removed: +Firmware removed: * ``amdgpu`` * ``netronome`` @@ -275,7 +275,7 @@ Adds TLS support to ironic-python-agent-ramdisk. By default this element will enable TLS API support in IPA with a self-signed certificate and key created at build time. -Optionally, you can provide your own SSL certifiate and key, and optionally +Optionally, you can provide your own SSL certificate and key, and optionally CA, via the following environment variables. They should be set to an accessible path on the build systems filesystem. If set, they will be copied into the built ramdisk, and IPA will be configured to use them. diff --git a/releasenotes/notes/dhcp-predictible-ifnames-b2a1d9e6471b6819.yaml b/releasenotes/notes/dhcp-predictible-ifnames-b2a1d9e6471b6819.yaml index a8a27ab..2537d66 100644 --- a/releasenotes/notes/dhcp-predictible-ifnames-b2a1d9e6471b6819.yaml +++ b/releasenotes/notes/dhcp-predictible-ifnames-b2a1d9e6471b6819.yaml @@ -1,6 +1,6 @@ --- fixes: - | - Add support for TinyIPA predictible device names in dhcp.sh script by changing + Add support for TinyIPA predictable device names in dhcp.sh script by changing of NETDEVICES variable. It will support any device from /proc/net/dev starting with e or p letter. diff --git a/releasenotes/notes/remove-PYOPTIMIZE_TINYIPA-ebde63911d140209.yaml b/releasenotes/notes/remove-PYOPTIMIZE_TINYIPA-ebde63911d140209.yaml index dc4a814..ffb84f1 100644 --- a/releasenotes/notes/remove-PYOPTIMIZE_TINYIPA-ebde63911d140209.yaml +++ b/releasenotes/notes/remove-PYOPTIMIZE_TINYIPA-ebde63911d140209.yaml @@ -1,8 +1,8 @@ --- fixes: - | - Removes support for ``PYOPTIMIZE_TINYIPA``, which now casues the TinyIPA - image to be approximately 5 MB larger. This was due to an incompatability + Removes support for ``PYOPTIMIZE_TINYIPA``, which now causes the TinyIPA + image to be approximately 5 MB larger. This was due to an incompatibility with the ``oslo.privsep`` library dependency on ``pycparser`` which cannot load into precompiled python programs where the original source embedded documentation is not present. diff --git a/tinyipa/add-ssh-tinyipa.sh b/tinyipa/add-ssh-tinyipa.sh index 1e8490e..c404524 100755 --- a/tinyipa/add-ssh-tinyipa.sh +++ b/tinyipa/add-ssh-tinyipa.sh @@ -11,7 +11,7 @@ # # By default, id_rsa or id_dsa keys of the user performing the build # are baked into the image as authorized_keys for 'tc' user. -# To supply different public ssh key, befor running this script set +# To supply different public ssh key, before running this script set # SSH_PUBLIC_KEY environment variable to point to absolute path to the key. # # This script produces "ansible-" ramdisk that can serve diff --git a/tinyipa/build-tinyipa.sh b/tinyipa/build-tinyipa.sh index 201be84..6dc743a 100755 --- a/tinyipa/build-tinyipa.sh +++ b/tinyipa/build-tinyipa.sh @@ -42,7 +42,7 @@ wget -N $TINYCORE_MIRROR_URL/$TC_RELEASE/x86_64/release/distribution_files/vmlin cd $WORKDIR ######################################################## -# Build Required Python Dependecies in a Build Directory +# Build Required Python Dependencies in a Build Directory ######################################################## # Make directory for building in @@ -142,8 +142,8 @@ $CHROOT_CMD mkdir -m777 /etc/sysconfig/tcedir $CHROOT_CMD touch /etc/sysconfig/tcuser $CHROOT_CMD chmod a+rwx /etc/sysconfig/tcuser -mkdir $BUILDDIR/tmp/overides -cp $WORKDIR/build_files/fakeuname $BUILDDIR/tmp/overides/uname +mkdir $BUILDDIR/tmp/overrides +cp $WORKDIR/build_files/fakeuname $BUILDDIR/tmp/overrides/uname sudo cp $WORKDIR/build_files/ntpdate $BUILDDIR/bin/ntpdate diff --git a/tinyipa/build_files/bootlocal.sh b/tinyipa/build_files/bootlocal.sh index 1c0c65f..7838264 100755 --- a/tinyipa/build_files/bootlocal.sh +++ b/tinyipa/build_files/bootlocal.sh @@ -24,7 +24,7 @@ fi # Maybe save some RAM? #rm -rf /tmp/builtin -# Install IPA and dependecies +# Install IPA and dependencies if ! type "ironic-python-agent" > /dev/null ; then PIP_COMMAND="pip" if hash pip3 2>/dev/null; then diff --git a/tinyipa/common.sh b/tinyipa/common.sh index f59a77d..f2e3c9d 100755 --- a/tinyipa/common.sh +++ b/tinyipa/common.sh @@ -24,7 +24,7 @@ export BRANCH_EXT TC=1001 STAFF=50 -CHROOT_PATH="/tmp/overides:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin" +CHROOT_PATH="/tmp/overrides:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin" CHROOT_CMD="sudo chroot $DST_DIR /usr/bin/env -i PATH=$CHROOT_PATH http_proxy=$http_proxy https_proxy=$https_proxy no_proxy=$no_proxy" TC_CHROOT_CMD="sudo chroot --userspec=$TC:$STAFF $DST_DIR /usr/bin/env -i PATH=$CHROOT_PATH http_proxy=$http_proxy https_proxy=$https_proxy no_proxy=$no_proxy" diff --git a/tinyipa/finalise-tinyipa.sh b/tinyipa/finalise-tinyipa.sh index 594f87f..61b322c 100755 --- a/tinyipa/finalise-tinyipa.sh +++ b/tinyipa/finalise-tinyipa.sh @@ -85,8 +85,8 @@ if $TINYIPA_REQUIRE_IPMITOOL; then cp $WORKDIR/build_files/ipmitool.* $FINALDIR/tmp/builtin/optional fi -mkdir $FINALDIR/tmp/overides -cp $WORKDIR/build_files/fakeuname $FINALDIR/tmp/overides/uname +mkdir $FINALDIR/tmp/overrides +cp $WORKDIR/build_files/fakeuname $FINALDIR/tmp/overrides/uname sudo cp $WORKDIR/build_files/ntpdate $FINALDIR/bin/ntpdate sudo chmod 755 $FINALDIR/bin/ntpdate @@ -181,7 +181,7 @@ sudo sed -i '/# Main/a NOZSWAP=1' "$FINALDIR/etc/init.d/tc-config" # Place ipv6 modprobe config so the kernel support loads. sudo cp "$WORKDIR/build_files/modprobe.conf" "$FINALDIR/etc/modproble.conf" -# NOTE(rpittau): workaorund for hwclock +# NOTE(rpittau): workaround for hwclock # The adjtime file used by hwclock in tinycore is /var/lib/hwclock/adjtime # but for some reason (bug?) the file is not created when hwclock is # invoked, causing hwclock to fail when using certain options, for example