Skip to content

Commit 4f21ce4

Browse files
committed
build
1 parent 80b098e commit 4f21ce4

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

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

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3322,19 +3322,51 @@ get_system_stat() {
33223322
free_space_required="1"
33233323
fi
33243324

3325+
local live_status_detected
3326+
## live-status-detected is provided only if package helper-scripts is installed.
3327+
if has live-status-detected; then
3328+
live_status_detected="$(live-status-detected)" || true
3329+
if [ "$live_status_detected" = "true" ]; then
3330+
log warn "Live Mode Detected: Yes, live mode detected. Unusual. Most users use this installer in persistent mode. But can be OK."
3331+
live_status_extra_message=" - ${underline}Live Mode detected:${nounderline} Yes. NOTE:
3332+
3333+
Running this installer in Live Mode will usually not work unless the system has a huge amount of RAM. Booting into persistent mode is recommended for using this installer.
3334+
3335+
- If this is an ISO: Consider installing the operating system to an internal or external hard drive first.
3336+
For more information, refer to:
3337+
${url_version_domain}/wiki/USB_Installation
3338+
3339+
- If this is grub-live mode: Boot into persistent mode.
3340+
For more information, refer to:
3341+
${url_version_domain}/wiki/Persistent_Mode"
3342+
elif [ "$live_status_detected" = "false" ]; then
3343+
live_status_extra_message=""
3344+
log info "Live Mode Detected: No, live mode not detected, ok."
3345+
else
3346+
log info "Live Mode Detected: Detection failed."
3347+
live_status_extra_message=" - ${underline}Live Mode detected:${nounderline} 'Detection failed.'"
3348+
fi
3349+
else
3350+
log info "Live Mode Detected: Skipped, because live-status-detected (from helper-scripts) is unavailable, ok."
3351+
live_status_extra_message=""
3352+
fi
3353+
33253354
if [ "${free_space_available}" -lt "$free_space_required" ]; then
33263355
die 101 "\
3327-
${underline}Free Disk Space Check Result:${nounderline} Insufficient free disk space!
3356+
${underline}Free Disk Space Check Result:${nounderline} 'FAIL.' - Insufficient free disk space!
33283357
3329-
- available: '${free_space_available}G'
3330-
- required : '${free_space_required}G'
3358+
- ${underline}available:${nounderline} '${free_space_available}G'
3359+
- ${underline}required :${nounderline} '${free_space_required}G'
3360+
${live_status_extra_message}
33313361
33323362
Debugging information:
33333363
- Command to test the available free space on ${directory_prefix}:
33343364
df --output=avail -BG \"${directory_prefix}\"
33353365
- Available free space result:
33363366
$df_output"
33373367
fi
3368+
3369+
log info "Free Disk Space Check Result: Success."
33383370
}
33393371

33403372

0 commit comments

Comments
 (0)