Skip to content

Commit e0c1b86

Browse files
authored
Fix typos in comments (archlinux#4107)
Typos found with codespell. No functional change.
1 parent d07a9b4 commit e0c1b86

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

archinstall/lib/crypt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def crypt_yescrypt(plaintext: str) -> str:
5151
By default chpasswd in Arch uses PAM to hash the password with crypt_yescrypt
5252
the PAM code https://github.com/linux-pam/linux-pam/blob/master/modules/pam_unix/support.c
5353
shows that the hashing rounds are determined from YESCRYPT_COST_FACTOR in /etc/login.defs
54-
If no value was specified (or commented out) a default of 5 is choosen
54+
If no value was specified (or commented out) a default of 5 is chosen
5555
"""
5656
value = _search_login_defs('YESCRYPT_COST_FACTOR')
5757
if value is not None:

archinstall/lib/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def _configure_grub_btrfsd(self, snapshot_type: SnapshotType) -> None:
10661066

10671067
debug(f'Configuring grub-btrfsd service for {snapshot_type} at {snapshot_path}')
10681068

1069-
# Works for either snapper or ts just adpating default paths above
1069+
# Works for either snapper or ts just adapting default paths above
10701070
# https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#id-1.14.3
10711071
systemd_dir = self.target / 'etc/systemd/system/grub-btrfsd.service.d'
10721072
systemd_dir.mkdir(parents=True, exist_ok=True)
@@ -1271,7 +1271,7 @@ def _add_systemd_bootloader(
12711271

12721272
try:
12731273
# Force EFI variables since bootctl detects arch-chroot
1274-
# as a container environemnt since v257 and skips them silently.
1274+
# as a container environment since v257 and skips them silently.
12751275
# https://github.com/systemd/systemd/issues/36174
12761276
if systemd_version >= '258':
12771277
self.arch_chroot(f'bootctl --variables=yes {" ".join(bootctl_options)} install')

archinstall/lib/models/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def install_network_config(
153153
case NicType.NM | NicType.NM_IWD:
154154
# Install NetworkManager package for both cases
155155
packages = ['networkmanager']
156-
# Defautl back-end only for non-iwd
156+
# Default back-end only for non-iwd
157157
if self.type == NicType.NM:
158158
packages.append('wpa_supplicant')
159159

archinstall/tui/menu_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def get_view_items(self) -> list[list[MenuItem]]:
429429
else:
430430
start = focus_row_idx
431431
end = focus_row_idx + self._total_rows
432-
elif len(enabled_items) <= self._total_rows: # the view can handle oll items
432+
elif len(enabled_items) <= self._total_rows: # the view can handle all items
433433
start = 0
434434
end = self._total_rows
435435
elif not self._item_group.has_filter() and focus_row_idx in self._prev_visible_rows: # focus is in the same view

0 commit comments

Comments
 (0)