Skip to content

Commit 5a698d9

Browse files
committed
Add an example of running ISO files from a third partition (#32, #35)
The third partition must be created and formatted manually. ISO files should be placed in: - root directory - a directory with a name specified in the script, e.g. ISO_dir (please update the script according to the comments)
1 parent a1da791 commit 5a698d9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Tails
2+
# https://tails.net
3+
4+
#
5+
# Tails on 3rd partition!
6+
#
7+
8+
iso_pattern="tails-amd64-*.iso" # If ISO directory path = /ISO_dir
9+
10+
for isofile in ($dev,3)/$iso_pattern; do # ($dev,3)/ISO_dir/$iso_pattern
11+
if [ -e "$isofile" ]; then
12+
regexp --set=isoname "/(.*)" "$isofile" # "/ISO_dir/(.*)"
13+
14+
submenu "$isoname ->" "$isofile" "$isoname" {
15+
iso_path="$2"
16+
LOOPBACK "$iso_path"
17+
isocfg="findiso=$3" # "findiso=/ISO_dir/$3"
18+
bootoptions="boot=live config nopersistence noprompt timezone=Etc/UTC splash noautologin module=Tails slab_nomerge slub_debug=FZ mce=0 vsyscall=none init_on_free=1 mds=full,nosmt page_alloc.shuffle=1 randomize_kstack_offset=on"
19+
linux_path="(loop)/live/vmlinuz"
20+
initrd_path="(loop)/live/initrd.img"
21+
22+
menuentry "Tails" {
23+
echo Loading kernel...
24+
linux $linux_path $isocfg $bootoptions quiet
25+
echo Loading initrd...
26+
initrd $initrd_path
27+
}
28+
menuentry "Tails (Troubleshooting Mode)" {
29+
echo Loading kernel...
30+
linux $linux_path $isocfg $bootoptions noapic noapm nodma nomce nolapic nosmp
31+
echo Loading initrd...
32+
initrd $initrd_path
33+
}
34+
}
35+
fi
36+
done

0 commit comments

Comments
 (0)