V8.13.440.2025.11.19
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m20s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m20s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
|
||||
# set -e
|
||||
|
||||
printf "\e[95m[INFO] Sourcing: [/usr/lib/live/boot/9990-main.sh] ... \n\e[0m"
|
||||
printf "\e[95m[INFO] Sourcing : [/usr/lib/live/boot/9990-main.sh] \n\e[0m"
|
||||
|
||||
Live ()
|
||||
{
|
||||
printf "\e[95m[INFO] Starting: [/usr/lib/live/boot/9990-main.sh] ... \n\e[0m"
|
||||
printf "\e[95m[INFO] Starting : [/usr/lib/live/boot/9990-main.sh] \n\e[0m"
|
||||
|
||||
if [ -x /scripts/local-top/cryptroot ]
|
||||
then
|
||||
@@ -56,12 +56,12 @@ Live ()
|
||||
# Needed here too because some things (*cough* udev *cough*)
|
||||
# change the timeout
|
||||
|
||||
printf "\e[93m[DEBUG] live(): Before do_netmount() pp. \e[0m\n" >&2
|
||||
printf "\e[93m[DEBUG] live(): Before do_netmount() pp. \e[0m\n"
|
||||
if [ -n "${NETBOOT}" ] || [ -n "${FETCH}" ] || [ -n "${HTTPFS}" ] || [ -n "${FTPFS}" ]
|
||||
then
|
||||
if do_netmount
|
||||
then
|
||||
printf "\e[93m[DEBUG] live(): [livefs_root=%s] \e[0m\n" "${mountpoint?}" >&2
|
||||
printf "\e[93m[DEBUG] live(): [livefs_root=%s] \e[0m\n" "${mountpoint?}"
|
||||
livefs_root="${mountpoint?}"
|
||||
else
|
||||
panic "Unable to find a live file system on the network"
|
||||
@@ -69,15 +69,15 @@ Live ()
|
||||
else
|
||||
if [ -n "${ISCSI_PORTAL}" ]
|
||||
then
|
||||
printf "\e[93m[DEBUG] live(): [do_iscsi && livefs_root=%s] \e[0m\n" "${mountpoint?}" >&2
|
||||
printf "\e[93m[DEBUG] live(): [do_iscsi && livefs_root=%s] \e[0m\n" "${mountpoint?}"
|
||||
do_iscsi && livefs_root="${mountpoint}"
|
||||
elif [ -n "${PLAIN_ROOT}" ] && [ -n "${ROOT}" ]
|
||||
then
|
||||
# Do a local boot from hd
|
||||
printf "\e[93m[DEBUG] live(): Do a local boot from hd [livefs_root=%s] \e[0m\n" "${ROOT?}" >&2
|
||||
printf "\e[93m[DEBUG] live(): Do a local boot from hd [livefs_root=%s] \e[0m\n" "${ROOT?}"
|
||||
livefs_root=${ROOT}
|
||||
else
|
||||
printf "\e[93m[DEBUG] live(): [Setup_Memdisk] \e[0m\n" >&2
|
||||
printf "\e[93m[DEBUG] live(): [Setup_Memdisk] \e[0m\n"
|
||||
Setup_Memdisk
|
||||
|
||||
# If the live media location is given via command line and access to it
|
||||
@@ -130,7 +130,7 @@ Live ()
|
||||
panic "Unable to find a medium containing a live file system"
|
||||
fi
|
||||
|
||||
printf "\e[93m[DEBUG] live(): Before [Verify_checksums %s] \e[0m\n" "${livefs_root}" >&2
|
||||
printf "\e[93m[DEBUG] live(): Before [Verify_checksums %s] \e[0m\n" "${livefs_root}"
|
||||
Verify_checksums "${livefs_root}"
|
||||
|
||||
# shellcheck disable=SC2244
|
||||
@@ -166,16 +166,16 @@ Live ()
|
||||
fi
|
||||
fi
|
||||
|
||||
printf "\e[93m[DBG] Live(): before overlay, live_dest=%s \e[0m\n" "${live_dest:-<none>}" >&2
|
||||
printf "\e[93m[DBG] Live(): MODULETORAMFILE=%s PLAIN_ROOT=%s \e[0m\n" "${MODULETORAMFILE}" "${PLAIN_ROOT}" >&2
|
||||
printf "\e[93m[DBG] Live(): before overlay, live_dest=%s \e[0m\n" "${live_dest:-<none>}"
|
||||
printf "\e[93m[DBG] Live(): MODULETORAMFILE=%s PLAIN_ROOT=%s \e[0m\n" "${MODULETORAMFILE}" "${PLAIN_ROOT}"
|
||||
if [ -n "${MODULETORAMFILE}" ] || [ -n "${PLAIN_ROOT}" ]
|
||||
then
|
||||
printf "\e[93m[DBG] Live(): setup_unionfs livefs_root=%s rootmnt=%s \e[0m\n" "${livefs_root}" "${rootmnt?}" >&2
|
||||
printf "\e[93m[DBG] Live(): setup_unionfs livefs_root=%s rootmnt=%s \e[0m\n" "${livefs_root}" "${rootmnt?}"
|
||||
setup_unionfs "${livefs_root}" "${rootmnt?}"
|
||||
else
|
||||
mac="$(get_mac)"
|
||||
mac="$(echo "${mac}" | sed 's/-//g')"
|
||||
printf "\e[93m[DBG] Live(): mount_images_in_directory livefs_root=%s rootmnt=%s mac=%s \e[0m\n" "${livefs_root}" "${rootmnt}" "${mac}" >&2
|
||||
printf "\e[93m[DBG] Live(): mount_images_in_directory livefs_root=%s rootmnt=%s mac=%s \e[0m\n" "${livefs_root}" "${rootmnt}" "${mac}"
|
||||
mount_images_in_directory "${livefs_root}" "${rootmnt}" "${mac}"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user