38 lines
1 KiB
INI
38 lines
1 KiB
INI
|
# Tails Grub config
|
||
|
# from GLIM
|
||
|
|
||
|
set isopath_tails="${isopath}/tails"
|
||
|
export isopath_tails
|
||
|
|
||
|
# abuse for to check for existence
|
||
|
for isofile in $isopath_tails/tails-*.iso; do
|
||
|
if [ ! -e "$isofile" ]; then break; fi
|
||
|
|
||
|
submenu "Tails" --class tails {
|
||
|
|
||
|
for isofile in $isopath_tails/tails-*.iso; do
|
||
|
if [ ! -e "$isofile" ]; then break; fi
|
||
|
echo "$isofile exists"
|
||
|
|
||
|
regexp \
|
||
|
--set 1:isoname \
|
||
|
--set 2:arch \
|
||
|
--set 3:version \
|
||
|
"^${isopath_tails}/(tails-([^-]+)-([^-]+)\.iso)\$" "${isofile}"
|
||
|
|
||
|
menuentry "Tails ${version} ${arch}" "${isofile}" "${isoname}" --class tails {
|
||
|
set isofile=$2
|
||
|
set isoname=$3
|
||
|
echo "Using ${isoname}..."
|
||
|
loopback loop $isofile
|
||
|
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 union=aufs quiet
|
||
|
initrd (loop)/live/initrd.img
|
||
|
}
|
||
|
done
|
||
|
|
||
|
}
|
||
|
|
||
|
# kill for loop
|
||
|
break
|
||
|
done
|