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