V8.13.512.2025.11.26
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -56,12 +56,10 @@ 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"
|
||||
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?}"
|
||||
livefs_root="${mountpoint?}"
|
||||
else
|
||||
panic "Unable to find a live file system on the network"
|
||||
@@ -69,17 +67,13 @@ Live ()
|
||||
else
|
||||
if [ -n "${ISCSI_PORTAL}" ]
|
||||
then
|
||||
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?}"
|
||||
livefs_root=${ROOT}
|
||||
else
|
||||
printf "\e[93m[DEBUG] live(): [Setup_Memdisk] starting ... \e[0m\n"
|
||||
Setup_Memdisk
|
||||
printf "\e[93m[DEBUG] live(): [Setup_Memdisk] finished. \e[0m\n"
|
||||
|
||||
# If the live media location is given via command line and access to it
|
||||
# involves LVM volumes, the corresponding volumes need to be activated.
|
||||
@@ -87,7 +81,6 @@ Live ()
|
||||
# shellcheck disable=SC2116
|
||||
for dev in $(echo "${LIVE_MEDIA}")
|
||||
do
|
||||
printf "\e[93m[DEBUG] live(): [%s] -> dev \e[0m\n" "${dev}"
|
||||
case "${dev}" in
|
||||
/dev/mapper/*)
|
||||
# shellcheck disable=SC2046,SC2312
|
||||
@@ -148,7 +141,6 @@ Live ()
|
||||
|
||||
fi
|
||||
|
||||
printf "\e[93m[DEBUG] live(): Before [Verify_checksums %s] \e[0m\n" "${livefs_root}"
|
||||
Verify_checksums "${livefs_root}"
|
||||
|
||||
# shellcheck disable=SC2244
|
||||
@@ -188,16 +180,14 @@ Live ()
|
||||
|
||||
fi
|
||||
|
||||
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?}"
|
||||
printf "\e[92m[INFO] 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}"
|
||||
printf "\e[92m[INFO] 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
|
||||
|
||||
@@ -274,5 +264,5 @@ Live ()
|
||||
cp boot.log "${rootmnt}/var/log/live" 2>/dev/null; \
|
||||
cp fsck.log "${rootmnt}/var/log/live" 2>/dev/null )
|
||||
|
||||
printf "\e[92m[INFO] Successfully applied : [/usr/lib/live/boot/9990-main.sh] ... \n\e[0m"
|
||||
printf "\e[92m[INFO] Successfully applied : [/usr/lib/live/boot/9990-main.sh] \n\e[0m"
|
||||
}
|
||||
|
||||
@@ -488,5 +488,5 @@ setup_unionfs ()
|
||||
done
|
||||
fi
|
||||
|
||||
printf "\e[92m[INFO] Successfully applied : [/usr/lib/live/boot/9990-overlay.sh] ... \n\e[0m"
|
||||
printf "\e[92m[INFO] Successfully applied : [/usr/lib/live/boot/9990-overlay.sh] \n\e[0m"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user