You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test -z "${1:-}"&& die 1 "${underline}root_cmd function:${nounderline} Failed to pass arguments to root_cmd."
269
+
test -z "${1:-}"&& die 1 "${underline}root_cmd function:${nounderline} Failed to pass arguments to function 'root_cmd'."
255
270
iftest -z "${sucmd:-}";then
256
271
get_su_cmd
257
272
fi
@@ -279,7 +294,7 @@ root_cmd(){
279
294
log_run "$root_cmd_loglevel" doas -u root -- "${@}"
280
295
;;
281
296
*)
282
-
die 1 "${underline}root_cmd function:${nounderline} root_cmd does not support sucmd: '${sucmd}'"
297
+
die 1 "${underline}root_cmd function:${nounderline}'root_cmd' does not support sucmd: '${sucmd}'"
283
298
;;
284
299
esac
285
300
}
@@ -292,35 +307,36 @@ get_su_cmd(){
292
307
has sudo && sucmd=sudo &&break
293
308
has doas && sucmd=doas &&break
294
309
has su && sucmd=su &&break
310
+
[ -z"${sucmd:-}" ] && sucmd=''
295
311
test -z "${sucmd}"&& {
296
-
die 1 "${underline}get_su_cmd:${nounderline} Failed to find program to run commands with administrative (\"root\") privileges. This installer requires either one of the following programs to be installed:
312
+
die 1 "${underline}get_su_cmd:${nounderline} Failed to find program to run commands with administrative ('root') privileges. This program requires either one of the following programs to be installed:
297
313
- sudo (recommended)
298
314
- doas
299
315
- su"
300
316
}
301
317
case"${sucmd}"in
302
318
sudo) :;;
303
-
*) log warn "Using sucmd '$sucmd'. Consider installation of sudo instead to cache your passwords instead of typing them every time.";;
319
+
*) log warn "Using sucmd '$sucmd'. Consider installation of 'sudo' instead to cache your passwords instead of typing them every time.";;
304
320
esac
305
321
done
306
322
307
-
log info "Testing root_cmd function..."
323
+
log info "Testing 'root_cmd' function..."
308
324
root_cmd printf'%s\n'"test">/dev/null ||
309
-
die 1 "${underline}get_su_cmd:${nounderline} Failed to run test command as root."
325
+
die 1 "${underline}get_su_cmd:${nounderline} Failed to run test command as 'root'."
log warn "Credential Caching Status: 'No' - Without credential caching, this installer will prompt for sudo authorization multiple times. Consider configuring sudo credential caching to streamline the installation process."
339
+
log warn "Credential Caching Status: 'No' - Without credential caching, this program will prompt for 'sudo' authorization multiple times. Consider configuring 'sudo' credential caching to streamline the installation process."
324
340
return 0
325
341
fi
326
342
## Used by dist-installer-gui.
@@ -329,8 +345,8 @@ get_su_cmd(){
329
345
log info "Credential Caching Status: 'Yes'"
330
346
root_output="$(timeout --kill-after 5 5 sudo -- test -d /usr 2>&1)"
331
347
iftest -n "${root_output}";then
332
-
log error "sudo output: '${root_output}'"
333
-
die 1 "${underline}get_su_cmd:${nounderline} Unexpected non-empty output for sudo test in normal mode."
348
+
log error "'sudo' output: '${root_output}'"
349
+
die 1 "${underline}get_su_cmd:${nounderline} Unexpected non-empty output for 'sudo' test in normal mode."
334
350
fi
335
351
fi
336
352
}
@@ -339,6 +355,9 @@ get_su_cmd(){
339
355
##### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/ip_syntax.sh
## Fallback to printf in case stecho is unavailable.
@@ -874,6 +902,8 @@ log(){
874
902
esac
875
903
fi
876
904
905
+
sleep 0.1
906
+
877
907
iftest"${xtrace:-}" = "1";then
878
908
set -o xtrace
879
909
fi
@@ -1033,15 +1063,15 @@ handle_exit() {
1033
1063
claim_unsupported_distro() {
1034
1064
status="${1}"
1035
1065
distro="${2}"
1036
-
log error "At this time, your Operating System is unsupported by the ${guest_pretty} Installer."
1066
+
log error "At this time, your Operating System is unsupported by the '${guest_pretty}' Installer."
1037
1067
log error "Visit the following URL to check support for manual installation:"
1038
1068
log error "${url_version_domain}/wiki/Virtualbox"
1039
-
die 101 "${underline}Distribution Check:${nounderline} Unsupported (${status} '${distro}') system."
1069
+
die 101 "${underline}Distribution Check:${nounderline} Unsupported ('${status}' '${distro}') system."
1040
1070
}
1041
1071
1042
1072
## Get necessary packages for your host system to be able to set the guest.
1043
1073
get_host_pkgs() {
1044
-
log notice "Package Installation: installation of hypervisor-required packages... Please wait, as this could take a while..."
1074
+
log notice "$hypervisor_pretty Installation: Required system virtualization packages are being installed... Please wait, this process may take a few minutes..."
1045
1075
if [ "$ubuntu_derivative_detected"="1" ];then
1046
1076
install_package_debian_common
1047
1077
install_virtualbox_ubuntu
@@ -1052,7 +1082,7 @@ get_host_pkgs() {
1052
1082
install_package_fedora_common
1053
1083
install_virtualbox_fedora
1054
1084
else
1055
-
die 1 "Operating system not found in get_host_pkgs. Please report this bug. Debug log required."
1085
+
die 1 "Operating system not found in 'get_host_pkgs'. Please report this bug. The debug log is required."
1056
1086
fi
1057
1087
}
1058
1088
@@ -1761,7 +1791,7 @@ Kernel module has been load: '$kernel_module_has_been_load'
1761
1791
Kernel module can be load: '$kernel_modules_can_be_load' (modules can be load. (sysctl kernel.modules_disabled=0 is set.)
1762
1792
Only signed kernel modules can be load: '$modules_signed_only'
log error "${underline}VirtualBox Installation Result:${nounderline}${red}${bold}'FAIL'${nobold}${nocolor} - because kernel modules have not been load yet.
@@ -2086,7 +2116,7 @@ virtualbox_start_failed() {
2086
2116
- The root cause for this issue is likely not the installer.
2087
2117
- This issue would likely also happen if the user tried to manually start the VMs.
2088
2118
- Resolving these issues (as per documentation hyperlinks above) would likely resolve this issue.
log notice "Not torifying connection, because socks_proxy envrionment variable is unset nor using '--onion'."
3432
+
log notice "Not torifying connection, because the 'socks_proxy' environment variable is unset nor using '--onion'."
3403
3433
return 0
3404
3434
fi
3405
3435
fi
3406
3436
3407
3437
if! has tor;then
3408
-
log warn "System tor binary (little-t-tor) was not found on the system."
3438
+
log warn "System 'tor' binary ('little-t-tor') was not found on the system."
3409
3439
log warn "Unless your SOCKS connection is made available by the Tor Browser"
3410
3440
log warn " or by your uplink network, the proxy check may fail."
3411
3441
log warn "The installer with torified connections depends on a working SOCKS proxy,"
@@ -3424,7 +3454,7 @@ torify_conn_maybe() {
3424
3454
else
3425
3455
## Stream Isolation will be enforced get_proxy_cred()
3426
3456
log warn "Missing SOCKS proxy for torified connections."
3427
-
log warn "Trying Tor defaults: system Tor (little-t-tor) (port: 9050) and TBB (Tor Browser Bundle) (port: 9150)."
3457
+
log warn "Trying Tor defaults: system Tor ('little-t-tor') (port: '9050') and TBB (Tor Browser Bundle) (port: '9150')."
3428
3458
proxy="127.0.0.1:9050"
3429
3459
set_transfer_proxy ${proxy}
3430
3460
if! check_tor_proxy;then
@@ -3444,7 +3474,7 @@ Unable to connect to Tor SOCKS proxy.
3444
3474
3445
3475
Please note that in order to torify connections, an already functional Tor connection is needed:
3446
3476
3447
-
- A) A pre-installed and running system Tor (little-t-tor), or,
3477
+
- A) A pre-installed and running system Tor ('little-t-tor'), or,
3448
3478
- B) A pre-installed and running TBB (Tor Browser Bundle).
3449
3479
3450
3480
Additional details:
@@ -3672,7 +3702,7 @@ get_virtualization() {
3672
3702
log warn " - The virtualization detection feature of this installer may not be flawless and could potentially fail to detect virtualization support (this is known as a 'false negative')."
3673
3703
if [ "${hypervisor}"="virtualbox" ];then
3674
3704
log warn " - Refer to user documentation on how to enable virtualization:"
log warn "Privilege escalation utilities other than 'sudo' for installing to an alternate user account or running under the sysmaint account is untested."
4344
+
log warn "Privilege escalation utilities other than 'sudo' for installing to an alternate user account or running under account 'sysmaint' is untested."
4327
4345
fi
4328
4346
4329
-
## getent may fail if the user doesn't exist, however we ignore it for now.
4347
+
## 'getent' may fail if the account doesn't exist, however we ignore it for now.
4330
4348
## The reason is because if this is run as a user account `sysmaint` on a
4331
-
## system with no user `user`, this will fail, but the user may have passed
4349
+
## system with no account 'user', this will fail, but the account may have passed
4332
4350
## their own --user and --directory-prefix flags which will fix it.
0 commit comments