|
17 | 17 | ## Detect if the system was booted in live mode |
18 | 18 | ## Check for 'rd.live.image' first, because both, ISO and grub-live come with 'boot=live' kernel parameter. |
19 | 19 | if printf "%s" "${proc_cmdline_output}" | grep --quiet --fixed-strings -e 'root=live' -e 'rd.live.image'; then |
20 | | - live_status_detected_live_mode_environment_pretty="ISO Live" |
21 | | - live_status_detected_live_mode_environment_machine="iso-live" |
22 | | - live_status_word_pretty="ISO" |
23 | | - live_status_detected="true" |
24 | | - live_status_maybe_iso_live_message="<br/><u>This message can be safely ignored if only using this ISO to install to the hard drive.</u><br/>" |
| 20 | + live_status_detected_live_mode_environment_pretty="ISO Live" |
| 21 | + live_status_detected_live_mode_environment_machine="iso-live" |
| 22 | + live_status_word_pretty="ISO" |
| 23 | + live_status_detected="true" |
| 24 | + live_status_maybe_iso_live_message="<br/><u>This message can be safely ignored if only using this ISO to install to the hard drive.</u><br/>" |
25 | 25 | elif printf "%s" "${proc_cmdline_output}" | grep --quiet --fixed-strings -e 'boot=live' -e 'rootovl' -e 'rd.live.overlay.overlayfs=1' ; then |
26 | | - live_status_detected_live_mode_environment_pretty="grub-live" |
27 | | - live_status_detected_live_mode_environment_machine="grub-live" |
28 | | - live_status_word_pretty="Live" |
29 | | - live_status_detected="true" |
30 | | - live_status_maybe_iso_live_message="" |
| 26 | + live_status_detected_live_mode_environment_pretty="grub-live" |
| 27 | + live_status_detected_live_mode_environment_machine="grub-live" |
| 28 | + live_status_word_pretty="Live" |
| 29 | + live_status_detected="true" |
| 30 | + live_status_maybe_iso_live_message="" |
31 | 31 | else |
32 | | - live_status_detected_live_mode_environment_pretty="false" |
33 | | - live_status_detected_live_mode_environment_machine="false" |
34 | | - live_status_word_pretty="persistent" |
35 | | - live_status_detected="false" |
36 | | - live_status_maybe_iso_live_message="" |
| 32 | + live_status_detected_live_mode_environment_pretty="false" |
| 33 | + live_status_detected_live_mode_environment_machine="false" |
| 34 | + live_status_word_pretty="persistent" |
| 35 | + live_status_detected="false" |
| 36 | + live_status_maybe_iso_live_message="" |
37 | 37 | fi |
38 | 38 |
|
39 | 39 | if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then |
|
0 commit comments