Skip to content

Commit d294b74

Browse files
committed
build
1 parent 3018568 commit d294b74

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

usr/share/usability-misc/dist-installer-cli-standalone

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,9 @@ get_installer_package_version() {
737737
local dist_installer_package
738738

739739
if [ ! "${debian_derivative_detected}" = "1" ]; then
740-
## usability-misc package only available for Debian derivatives.
741-
## Check using dpkg-query implemented below only available on Debian and derivatives.
742-
true "INFO: No debian derivative detected."
740+
## The usability-misc package is only available for Debian derivatives.
741+
## The check using dpkg-query implemented below is only available on Debian and derivatives.
742+
true "INFO: No Debian derivative detected."
743743
return 0
744744
fi
745745
## Do not use commit-hash replace-me as search string to avoid replacement script replacing this.
@@ -1256,9 +1256,9 @@ get_host_virtualizer_pkgs() {
12561256
get_independent_host_pkgs() {
12571257
## Platform independent packages
12581258
if has signify-openbsd; then
1259-
## fix Debian unconventional naming
1259+
## Fix Debian's unconventional naming.
12601260
run_signify() {
1261-
## Debian places in signify-openbsd in folder '/bin' and not '/usr/bin'.
1261+
## Debian places signify-openbsd in the '/bin' folder instead of '/usr/bin'.
12621262
run_as_target_user signify-openbsd "${@}"
12631263
}
12641264
else
@@ -1294,7 +1294,7 @@ get_independent_host_pkgs() {
12941294
nested_virtualization_test() {
12951295
#nested_virtualization_detected=""
12961296
if [ -z "${nested_virt_tool:-}" ]; then
1297-
## No hard fail, not a requirement, good to have only.
1297+
## No hard fail; not a requirement, only good to have.
12981298
user_warned_potential_startup_issue=true
12991299
log warn "${underline}Nested Virtualization Test:${nounderline} Detection tool for nested virtualization is missing."
13001300
else
@@ -1387,13 +1387,13 @@ dkms_signing_key_enrollment() {
13871387
## With exit code 0.
13881388
##
13891389
## sudo mokutil --root-pw --import /var/lib/dkms/mok.pub
1390-
## This can fail if the root account is locked / has no password such as in Kicksecure.
1390+
## This can fail if the root account is locked or has no password, such as in Kicksecure.
13911391
## > Failed to get root password hash
13921392
##
13931393
## This is a Debian DKMS / shim-signed issue:
13941394
## - dkms Debian: enroll DKMS signing key / automate running "sudo mokutil --import /var/lib/dkms/mok.pub"
13951395
## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076269
1396-
## - shim-signed Debian: please update update-secureboot-policy / add '--new-key' option
1396+
## - shim-signed Debian: please update the update-secureboot-policy script / add '--new-key' option
13971397
## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076278
13981398
## - dkms upstream: automate running "`sudo mokutil --import /var/lib/dkms/mok.pub`"
13991399
## https://github.com/dell/dkms/issues/429
@@ -1410,7 +1410,7 @@ die 1 "${underline}Secure Boot DKMS Signing Key Enrollment Check Result:${nounde
14101410

14111411
kernel_modules_load() {
14121412
local modules_disabled
1413-
## Does usually not require root but might on some hardened systems.
1413+
## Usually does not require root but might on some hardened systems.
14141414
if ! modules_disabled=$(root_cmd_loglevel=null root_cmd cat -- /proc/sys/kernel/modules_disabled) ; then
14151415
kernel_modules_can_be_loaded=maybe
14161416
user_warned_potential_startup_issue=true
@@ -1419,17 +1419,17 @@ kernel_modules_load() {
14191419
fi
14201420
if [ "$modules_disabled" = "0" ]; then
14211421
kernel_modules_can_be_loaded=true
1422-
log info "Kernel Module Load Check Result: 'yes' - modules can be load. (sysctl kernel.modules_disabled=0 is set.)"
1422+
log info "Kernel Module Load Check Result: 'yes' - modules can be loaded. (sysctl kernel.modules_disabled=0 is set.)"
14231423
return 0
14241424
fi
14251425
kernel_modules_can_be_loaded=false
1426-
log info "${underline}Kernel Module Load Check Result:${nounderline} 'no' - modules cannot be load. (sysctl kernel.modules_disabled=1 is set.)"
1426+
log info "${underline}Kernel Module Load Check Result:${nounderline} 'no' - modules cannot be loaded. (sysctl kernel.modules_disabled=1 is set.)"
14271427
}
14281428

14291429

14301430
kernel_modules_signed_only() {
14311431
local sig_enforce
1432-
## Does usually not require root but might on some hardened systems.
1432+
## Usually does not require root but might on some hardened systems.
14331433
if ! sig_enforce=$(root_cmd_loglevel="echo" root_cmd cat -- /sys/module/module/parameters/sig_enforce) ; then
14341434
modules_signed_only=maybe
14351435
user_warned_potential_startup_issue=true
@@ -1438,11 +1438,11 @@ kernel_modules_signed_only() {
14381438
fi
14391439
if [ "$sig_enforce" = "Y" ]; then
14401440
modules_signed_only=true
1441-
log info "Kernel Module Signature Enforcement Check Result: 'yes' - only signed modules can be load. (kernel parameter module.sig_enforce=1 might be set.)"
1441+
log info "Kernel Module Signature Enforcement Check Result: 'yes' - only signed modules can be loaded. (kernel parameter module.sig_enforce=1 might be set.)"
14421442
return 0
14431443
fi
14441444
modules_signed_only=false
1445-
log info "Kernel Module Signature Enforcement Check Result: 'no' - unsigned modules can be load."
1445+
log info "Kernel Module Signature Enforcement Check Result: 'no' - unsigned modules can be loaded."
14461446
}
14471447

14481448

@@ -1460,7 +1460,7 @@ need_reboot_check_first() {
14601460
fi
14611461

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

15541554

15551555
update_sources_error() {
@@ -1959,19 +1959,19 @@ check_guest_boot() {
19591959
esac
19601960

19611961
if [ "$kernel_module_has_been_loaded" = "false" ]; then
1962-
## Kernel modules have not been load.
1962+
## Kernel modules have not been loaded.
19631963
user_warned_potential_startup_issue=true
19641964
log warn "Debugging information:
19651965
Secure Boot Status: '$secure_boot_status_pretty'
19661966
Kernel module has been loaded: '$kernel_module_has_been_loaded'
1967-
Kernel modules can be loaded: '$kernel_modules_can_be_loaded' (modules can be load. (sysctl kernel.modules_disabled=0 is set.)
1968-
Only signed kernel modules can be load: '$modules_signed_only'
1967+
Kernel modules can be loaded: '$kernel_modules_can_be_loaded' (sysctl kernel.modules_disabled=0 is set.)
1968+
Only signed kernel modules can be loaded: '$modules_signed_only'
19691969
Kernel module vboxdrv signer: '$kernel_module_signer'
19701970
kernel_module_modprobe_output ('$sucmd modprobe vboxdrv'): '$kernel_module_modprobe_output'"
19711971

19721972
if [ "$kernel_modules_can_be_loaded" = "true" ]; then
1973-
log error "${underline}VirtualBox Installation Result:${nounderline} ${red}${bold}'FAIL'${nobold}${nocolor} - because kernel modules have not been load yet.
1974-
- Kernel modules can be load in theory, should be loaded by now, but are not.
1973+
log error "${underline}VirtualBox Installation Result:${nounderline} ${red}${bold}'FAIL'${nobold}${nocolor} - because kernel modules have not been loaded yet.
1974+
- Kernel modules can be loaded in theory, should be loaded by now, but are not.
19751975
- This is a VirtualBox installation issue."
19761976
if [ "${ci}" != "1" ]; then
19771977
virtualbox_start_failed
@@ -2550,8 +2550,8 @@ install_package_debian_common() {
25502550
## 'sudo apt-get dist-upgrade --target-release=trixie-fasttrack'.
25512551
## It misses out on packages from "trixie-fasttrack".
25522552
upgrade_check_output="$(root_cmd "${pkg_mngr_upgrade_check[@]}" "$@" 2>&1)" || true
2553-
## Counting both 'Inst' and 'Conf' is not an accurate counting. Will double count. But will also mean that
2554-
## APT has things to do.
2553+
## Counting both 'Inst' and 'Conf' is not precise and will double count, but it
2554+
## still indicates that APT has work to do.
25552555
upgrade_check_grep_output="$(printf '%s' "${upgrade_check_output}" | grep -e '^Inst' -e '^Conf')" || true
25562556
number_upgradable=0
25572557
if [ -n "$upgrade_check_grep_output" ]; then
@@ -3190,7 +3190,7 @@ repo_gpgcheck=1
31903190
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
31913191
' | root_cmd tee -- /etc/yum.repos.d/oracle.repo
31923192

3193-
## dnf does not have a command to accept add the key to its database.
3193+
## dnf does not have a command to add the key to its database.
31943194
## https://bugzilla.redhat.com/show_bug.cgi?id=1768206
31953195
## Workaround to accept the key with --assumeyes without accepting other things.
31963196
## Does not work.
@@ -3346,9 +3346,9 @@ install_backports_and_fasttrack_repository_debian() {
33463346

33473347

33483348
## virtualbox-guest-additions-iso is available from Debian stable and fasttrack.
3349-
## Debian stable version however is outdated.
3349+
## The Debian stable version, however, is outdated.
33503350
## If not using APT with option '--target-release=trixie-fasttrack' then
3351-
## APT would download an outdated version from Debian stable instead the
3351+
## APT would download an outdated version from Debian stable instead of the
33523352
## newer version from Debian fasttrack.
33533353
install_pkg_fasttrack_extra_args_maybe=( "--target-release=${distro_codename_common_use}-fasttrack" )
33543354
}
@@ -3704,19 +3704,19 @@ get_transfer_cmd() {
37043704
case ${transfer_utility} in
37053705
curl)
37063706
## Maximum time in seconds that we allow the whole operation to take.
3707-
## Option works but as rsync doesn't have it, we are using timeout
3707+
## The option works, but because rsync doesn't support it, we are using the timeout
37083708
## utility from coreutils.
37093709
#transfer_max_time_opt="--max-time"
3710-
## Curl does not have I/O timeout.
3710+
## curl does not have an I/O timeout.
37113711
transfer_io_timeout_opt=()
37123712
## Maximum time in seconds that we allow curl's connection to take.
3713-
## This only limits the connection phase, so if curl's connect in the
3713+
## This only limits the connection phase, so if curl connects within the
37143714
## given period, it will continue.
37153715
transfer_connect_timeout_opt=( '--connect-timeout' "${transfer_connect_timeout}" )
37163716
## curl max-filesize is not a definitive barrier:
37173717
## The file size is not always known prior to download, and for
37183718
## such files this option has no effect even if the file transfer ends
3719-
## up being larger than this given limit.
3719+
## up being larger than this given limit.
37203720
transfer_size_opt="--max-filesize"
37213721
transfer_dryrun_opt=""
37223722
transfer_output_dir_opt="--output-dir"
@@ -3725,8 +3725,8 @@ get_transfer_cmd() {
37253725
transfer_speed_optimization_opt=()
37263726
;;
37273727
rsync*)
3728-
## Rsync does not have an option to set maximum time for of operation.
3729-
## Option works but as rsync doesn't have it, we are using timeout
3728+
## Rsync does not have an option to set the maximum time for the operation.
3729+
## The option works, but because rsync doesn't support it, we are using the timeout
37303730
## utility from coreutils.
37313731
#transfer_max_time_opt=""
37323732
## If no data is transferred in the specified time, rsync will exit.
@@ -5102,7 +5102,7 @@ parse_opt() {
51025102
## Only accept an absolute path.
51035103
if [ "${directory_prefix}" = "${directory_prefix#/}" ]; then
51045104
log error "Invalid directory prefix: '${directory_prefix}'"
5105-
die 1 "Directory prefix can not be a relative path, must be an absolute path."
5105+
die 1 "Directory prefix cannot be a relative path, must be an absolute path."
51065106
fi
51075107

51085108
## Test if parent directory exists.

0 commit comments

Comments
 (0)