2020-11-13 03:22:54 +01:00
|
|
|
# Tails Grub config
|
|
|
|
# from GLIM
|
|
|
|
|
2023-04-07 19:45:36 +02:00
|
|
|
set this_isopath="${isodev}${isopath}/tails"
|
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}/tails-*.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 Tailses in ${this_isopath}"
|
2020-11-13 03:22:54 +01:00
|
|
|
|
2023-04-07 19:45:36 +02:00
|
|
|
submenu "Tails" "${this_isopath}" --class tails {
|
|
|
|
this_isopath=$2
|
|
|
|
|
|
|
|
for isofile in ${this_isopath}/tails-*.iso; do
|
2020-11-13 03:22:54 +01:00
|
|
|
if [ ! -e "$isofile" ]; then break; fi
|
|
|
|
|
|
|
|
regexp \
|
|
|
|
--set 1:isoname \
|
|
|
|
--set 2:arch \
|
|
|
|
--set 3:version \
|
2023-04-07 19:45:36 +02:00
|
|
|
"^.*/(tails-([^-]+)-([^-]+)\.iso)\$" "${isofile}"
|
2020-11-13 03:22:54 +01:00
|
|
|
|
|
|
|
menuentry "Tails ${version} ${arch}" "${isofile}" "${isoname}" --class tails {
|
|
|
|
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}"
|
2023-04-07 22:02:53 +02:00
|
|
|
linux (loop)/live/vmlinuz boot=live live-media=removable findiso=${isofile} config apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails kaslr slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 quiet
|
2020-11-13 03:22:54 +01:00
|
|
|
initrd (loop)/live/initrd.img
|
|
|
|
}
|
|
|
|
done
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
# kill for loop
|
|
|
|
break
|
|
|
|
done
|