2020-11-13 03:22:54 +01:00
|
|
|
# TinyCore Grub Config
|
|
|
|
|
|
|
|
|
2023-04-07 19:45:36 +02:00
|
|
|
set this_isopath="${isodev}${isopath}/tinycore"
|
2020-11-13 03:22:54 +01:00
|
|
|
|
|
|
|
# abuse for to check for existence
|
2023-04-07 19:45:36 +02:00
|
|
|
for isofile in $this_isopath/*.iso; do
|
2020-11-13 03:22:54 +01:00
|
|
|
if [ ! -e "$isofile" ]; then break; fi
|
|
|
|
|
2023-04-07 19:45:36 +02:00
|
|
|
echo "Found TinyCores in ${this_isopath}"
|
2020-11-13 03:22:54 +01:00
|
|
|
|
2023-04-07 19:45:36 +02:00
|
|
|
submenu "TinyCore Linux >" "${this_isopath}" --class tinycore {
|
|
|
|
this_isopath=$2
|
|
|
|
|
|
|
|
for isofile in ${this_isopath}/*Core*.iso; do
|
2020-11-13 03:22:54 +01:00
|
|
|
if [ ! -e "$isofile" ]; then break; fi
|
|
|
|
|
|
|
|
regexp \
|
|
|
|
--set 1:isoname \
|
|
|
|
--set 2:variant \
|
|
|
|
--set 3:version \
|
2023-04-07 19:45:36 +02:00
|
|
|
"^.*/((.*Core[^-]*)-(.+)\.iso)\$" "${isofile}"
|
2020-11-13 03:22:54 +01:00
|
|
|
|
|
|
|
menuentry "${variant} ${version}" "${isofile}" "${isoname}" --class tinycore {
|
|
|
|
set isofile=$2
|
|
|
|
set isoname=$3
|
2023-04-07 19:45:36 +02:00
|
|
|
|
|
|
|
regexp \
|
|
|
|
--set 1:isodev \
|
|
|
|
--set 2:isofile \
|
|
|
|
"^(\(.*\))?(.*)\$" "${isofile}"
|
|
|
|
|
2020-11-13 03:22:54 +01:00
|
|
|
echo "Using ${isoname}..."
|
2023-04-07 19:45:36 +02:00
|
|
|
loopback loop "${isodev}${isofile}"
|
2020-11-13 03:22:54 +01:00
|
|
|
# ideas to add for CorePlus: loglevel=3 cde showapps desktop=flwm_topside
|
|
|
|
linux (loop)/boot/vmlinuz
|
|
|
|
initrd (loop)/boot/core.gz
|
|
|
|
}
|
|
|
|
done
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
# kill for loop
|
|
|
|
break
|
|
|
|
done
|