lsgm/rescue.sh
2023-10-10 22:09:54 +02:00

45 lines
799 B
Bash

function set_init {
#
unset esp
search --no-floppy \
--set esp --fs-uuid '{}'
#
unset data
search --no-floppy \
--set data --fs-uuid '{}'
if [ ! "${data}" ] ; then
data="${esp}"
fi
#
if [ "${esp}" ] ; then
# TODO {}
env="(${esp})/grub.env"
# TODO {}
live="(${esp})/lsgm/live"
#
# TODO {}
for file in ${live}/source/*.sh ; do
source "${file}"
done
unset file
fi
}
function normal_init {
# TODO {}
check_signatures='no'
# TODO {}
pager=0
#
set_init
if [ "${esp}" ] ; then
# TODO {}
prefix="(${esp})/grub"
root="${esp}"
#
# TODO {}
normal "${live}/normal.sh"
fi
}
normal_init