Skip to content

Commit 3018568

Browse files
committed
Merge remote-tracking branch 'assisted-by-ai/codex/check-usr/bin/dist-installer-cli-for-typos-and-grammar'
2 parents 151a38b + 0eb7451 commit 3018568

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

usr/bin/dist-installer-cli

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ get_installer_package_version() {
277277
local dist_installer_package
278278

279279
if [ ! "${debian_derivative_detected}" = "1" ]; then
280-
## usability-misc package only available for Debian derivatives.
281-
## Check using dpkg-query implemented below only available on Debian and derivatives.
282-
true "INFO: No debian derivative detected."
280+
## The usability-misc package is only available for Debian derivatives.
281+
## The check using dpkg-query implemented below is only available on Debian and derivatives.
282+
true "INFO: No Debian derivative detected."
283283
return 0
284284
fi
285285
## Do not use commit-hash replace-me as search string to avoid replacement script replacing this.
@@ -470,9 +470,9 @@ get_host_virtualizer_pkgs() {
470470
get_independent_host_pkgs() {
471471
## Platform independent packages
472472
if has signify-openbsd; then
473-
## fix Debian unconventional naming
473+
## Fix Debian's unconventional naming.
474474
run_signify() {
475-
## Debian places in signify-openbsd in folder '/bin' and not '/usr/bin'.
475+
## Debian places signify-openbsd in the '/bin' folder instead of '/usr/bin'.
476476
run_as_target_user signify-openbsd "${@}"
477477
}
478478
else
@@ -508,7 +508,7 @@ get_independent_host_pkgs() {
508508
nested_virtualization_test() {
509509
#nested_virtualization_detected=""
510510
if [ -z "${nested_virt_tool:-}" ]; then
511-
## No hard fail, not a requirement, good to have only.
511+
## No hard fail; not a requirement, only good to have.
512512
user_warned_potential_startup_issue=true
513513
log warn "${underline}Nested Virtualization Test:${nounderline} Detection tool for nested virtualization is missing."
514514
else
@@ -601,13 +601,13 @@ dkms_signing_key_enrollment() {
601601
## With exit code 0.
602602
##
603603
## sudo mokutil --root-pw --import /var/lib/dkms/mok.pub
604-
## This can fail if the root account is locked / has no password such as in Kicksecure.
604+
## This can fail if the root account is locked or has no password, such as in Kicksecure.
605605
## > Failed to get root password hash
606606
##
607607
## This is a Debian DKMS / shim-signed issue:
608608
## - dkms Debian: enroll DKMS signing key / automate running "sudo mokutil --import /var/lib/dkms/mok.pub"
609609
## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076269
610-
## - shim-signed Debian: please update update-secureboot-policy / add '--new-key' option
610+
## - shim-signed Debian: please update the update-secureboot-policy script / add '--new-key' option
611611
## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076278
612612
## - dkms upstream: automate running "`sudo mokutil --import /var/lib/dkms/mok.pub`"
613613
## https://github.com/dell/dkms/issues/429
@@ -624,7 +624,7 @@ die 1 "${underline}Secure Boot DKMS Signing Key Enrollment Check Result:${nounde
624624

625625
kernel_modules_load() {
626626
local modules_disabled
627-
## Does usually not require root but might on some hardened systems.
627+
## Usually does not require root but might on some hardened systems.
628628
if ! modules_disabled=$(root_cmd_loglevel=null root_cmd cat -- /proc/sys/kernel/modules_disabled) ; then
629629
kernel_modules_can_be_loaded=maybe
630630
user_warned_potential_startup_issue=true
@@ -633,17 +633,17 @@ kernel_modules_load() {
633633
fi
634634
if [ "$modules_disabled" = "0" ]; then
635635
kernel_modules_can_be_loaded=true
636-
log info "Kernel Module Load Check Result: 'yes' - modules can be load. (sysctl kernel.modules_disabled=0 is set.)"
636+
log info "Kernel Module Load Check Result: 'yes' - modules can be loaded. (sysctl kernel.modules_disabled=0 is set.)"
637637
return 0
638638
fi
639639
kernel_modules_can_be_loaded=false
640-
log info "${underline}Kernel Module Load Check Result:${nounderline} 'no' - modules cannot be load. (sysctl kernel.modules_disabled=1 is set.)"
640+
log info "${underline}Kernel Module Load Check Result:${nounderline} 'no' - modules cannot be loaded. (sysctl kernel.modules_disabled=1 is set.)"
641641
}
642642

643643

644644
kernel_modules_signed_only() {
645645
local sig_enforce
646-
## Does usually not require root but might on some hardened systems.
646+
## Usually does not require root but might on some hardened systems.
647647
if ! sig_enforce=$(root_cmd_loglevel="echo" root_cmd cat -- /sys/module/module/parameters/sig_enforce) ; then
648648
modules_signed_only=maybe
649649
user_warned_potential_startup_issue=true
@@ -652,11 +652,11 @@ kernel_modules_signed_only() {
652652
fi
653653
if [ "$sig_enforce" = "Y" ]; then
654654
modules_signed_only=true
655-
log info "Kernel Module Signature Enforcement Check Result: 'yes' - only signed modules can be load. (kernel parameter module.sig_enforce=1 might be set.)"
655+
log info "Kernel Module Signature Enforcement Check Result: 'yes' - only signed modules can be loaded. (kernel parameter module.sig_enforce=1 might be set.)"
656656
return 0
657657
fi
658658
modules_signed_only=false
659-
log info "Kernel Module Signature Enforcement Check Result: 'no' - unsigned modules can be load."
659+
log info "Kernel Module Signature Enforcement Check Result: 'no' - unsigned modules can be loaded."
660660
}
661661

662662

@@ -674,7 +674,7 @@ need_reboot_check_first() {
674674
fi
675675

676676
## Building for an old kernel might result in missing kernel headers for that kernel
677-
## In result, VirtualBox would fail to start.
677+
## As a result, VirtualBox would fail to start.
678678
die 1 "${underline}Reboot Check Result:${nounderline} Your system reports that a reboot is required.
679679
680680
Please reboot your system and restart this installer.
@@ -763,7 +763,7 @@ package_manager_issue_extra_help_text="The user is advised to attempt to debug t
763763
1. Run above command as root (with sudo).
764764
2. If there is an issue, use search engines, documentation and if needed
765765
contact the support of your operating system.
766-
3. Once this has been fixed fixed, re-run this installer."
766+
3. Once this has been fixed, re-run this installer."
767767

768768

769769
update_sources_error() {
@@ -1173,19 +1173,19 @@ check_guest_boot() {
11731173
esac
11741174

11751175
if [ "$kernel_module_has_been_loaded" = "false" ]; then
1176-
## Kernel modules have not been load.
1176+
## Kernel modules have not been loaded.
11771177
user_warned_potential_startup_issue=true
11781178
log warn "Debugging information:
11791179
Secure Boot Status: '$secure_boot_status_pretty'
11801180
Kernel module has been loaded: '$kernel_module_has_been_loaded'
1181-
Kernel modules can be loaded: '$kernel_modules_can_be_loaded' (modules can be load. (sysctl kernel.modules_disabled=0 is set.)
1182-
Only signed kernel modules can be load: '$modules_signed_only'
1181+
Kernel modules can be loaded: '$kernel_modules_can_be_loaded' (sysctl kernel.modules_disabled=0 is set.)
1182+
Only signed kernel modules can be loaded: '$modules_signed_only'
11831183
Kernel module vboxdrv signer: '$kernel_module_signer'
11841184
kernel_module_modprobe_output ('$sucmd modprobe vboxdrv'): '$kernel_module_modprobe_output'"
11851185

11861186
if [ "$kernel_modules_can_be_loaded" = "true" ]; then
1187-
log error "${underline}VirtualBox Installation Result:${nounderline} ${red}${bold}'FAIL'${nobold}${nocolor} - because kernel modules have not been load yet.
1188-
- Kernel modules can be load in theory, should be loaded by now, but are not.
1187+
log error "${underline}VirtualBox Installation Result:${nounderline} ${red}${bold}'FAIL'${nobold}${nocolor} - because kernel modules have not been loaded yet.
1188+
- Kernel modules can be loaded in theory, should be loaded by now, but are not.
11891189
- This is a VirtualBox installation issue."
11901190
if [ "${ci}" != "1" ]; then
11911191
virtualbox_start_failed
@@ -1764,8 +1764,8 @@ install_package_debian_common() {
17641764
## 'sudo apt-get dist-upgrade --target-release=trixie-fasttrack'.
17651765
## It misses out on packages from "trixie-fasttrack".
17661766
upgrade_check_output="$(root_cmd "${pkg_mngr_upgrade_check[@]}" "$@" 2>&1)" || true
1767-
## Counting both 'Inst' and 'Conf' is not an accurate counting. Will double count. But will also mean that
1768-
## APT has things to do.
1767+
## Counting both 'Inst' and 'Conf' is not precise and will double count, but it
1768+
## still indicates that APT has work to do.
17691769
upgrade_check_grep_output="$(printf '%s' "${upgrade_check_output}" | grep -e '^Inst' -e '^Conf')" || true
17701770
number_upgradable=0
17711771
if [ -n "$upgrade_check_grep_output" ]; then
@@ -2404,7 +2404,7 @@ repo_gpgcheck=1
24042404
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
24052405
' | root_cmd tee -- /etc/yum.repos.d/oracle.repo
24062406

2407-
## dnf does not have a command to accept add the key to its database.
2407+
## dnf does not have a command to add the key to its database.
24082408
## https://bugzilla.redhat.com/show_bug.cgi?id=1768206
24092409
## Workaround to accept the key with --assumeyes without accepting other things.
24102410
## Does not work.
@@ -2560,9 +2560,9 @@ install_backports_and_fasttrack_repository_debian() {
25602560

25612561

25622562
## virtualbox-guest-additions-iso is available from Debian stable and fasttrack.
2563-
## Debian stable version however is outdated.
2563+
## The Debian stable version, however, is outdated.
25642564
## If not using APT with option '--target-release=trixie-fasttrack' then
2565-
## APT would download an outdated version from Debian stable instead the
2565+
## APT would download an outdated version from Debian stable instead of the
25662566
## newer version from Debian fasttrack.
25672567
install_pkg_fasttrack_extra_args_maybe=( "--target-release=${distro_codename_common_use}-fasttrack" )
25682568
}
@@ -2918,19 +2918,19 @@ get_transfer_cmd() {
29182918
case ${transfer_utility} in
29192919
curl)
29202920
## Maximum time in seconds that we allow the whole operation to take.
2921-
## Option works but as rsync doesn't have it, we are using timeout
2921+
## The option works, but because rsync doesn't support it, we are using the timeout
29222922
## utility from coreutils.
29232923
#transfer_max_time_opt="--max-time"
2924-
## Curl does not have I/O timeout.
2924+
## curl does not have an I/O timeout.
29252925
transfer_io_timeout_opt=()
29262926
## Maximum time in seconds that we allow curl's connection to take.
2927-
## This only limits the connection phase, so if curl's connect in the
2927+
## This only limits the connection phase, so if curl connects within the
29282928
## given period, it will continue.
29292929
transfer_connect_timeout_opt=( '--connect-timeout' "${transfer_connect_timeout}" )
29302930
## curl max-filesize is not a definitive barrier:
29312931
## The file size is not always known prior to download, and for
29322932
## such files this option has no effect even if the file transfer ends
2933-
## up being larger than this given limit.
2933+
## up being larger than this given limit.
29342934
transfer_size_opt="--max-filesize"
29352935
transfer_dryrun_opt=""
29362936
transfer_output_dir_opt="--output-dir"
@@ -2939,8 +2939,8 @@ get_transfer_cmd() {
29392939
transfer_speed_optimization_opt=()
29402940
;;
29412941
rsync*)
2942-
## Rsync does not have an option to set maximum time for of operation.
2943-
## Option works but as rsync doesn't have it, we are using timeout
2942+
## Rsync does not have an option to set the maximum time for the operation.
2943+
## The option works, but because rsync doesn't support it, we are using the timeout
29442944
## utility from coreutils.
29452945
#transfer_max_time_opt=""
29462946
## If no data is transferred in the specified time, rsync will exit.
@@ -4316,7 +4316,7 @@ parse_opt() {
43164316
## Only accept an absolute path.
43174317
if [ "${directory_prefix}" = "${directory_prefix#/}" ]; then
43184318
log error "Invalid directory prefix: '${directory_prefix}'"
4319-
die 1 "Directory prefix can not be a relative path, must be an absolute path."
4319+
die 1 "Directory prefix cannot be a relative path, must be an absolute path."
43204320
fi
43214321

43224322
## Test if parent directory exists.

0 commit comments

Comments
 (0)