amnesia 2.18 KB
Newer Older
amnesia's avatar
amnesia committed
1 2 3 4 5 6 7 8 9 10 11 12
# -*- mode: sh; -*-

# Configuration file for the Amnesia live system
# 
# You'd better never directly edit this file: rather put your custom
# variable assignments in a new file called 'amnesia.local', in the
# same directory as this one. The values found in the '.local' file
# will override the ones from this one.
# 
# These configuration files are actually shell scripts, and are
# sourced by various other scripts.

13
export SOURCE_DATE_EPOCH="$(date --utc --date="$(dpkg-parsechangelog --show-field=Date)" +%s)"
14
export SOURCE_DATE_YYYYMMDD="$(date --utc --date="$(dpkg-parsechangelog --show-field=Date)" +%Y%m%d)"
15
export SOURCE_DATE_FAKETIME="$(date --utc --date="$(dpkg-parsechangelog --show-field=Date)" '+%Y-%m-%d %H:%M:%S')"
16

17
# Base for the string that will be passed to "lb config --bootappend-live"
18 19
# FIXME: see [[bugs/sdmem_on_eject_broken_for_CD]] for explanation why we
# need to set block.events_dfl_poll_msecs
20
AMNESIA_APPEND="live-media=removable nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt"
amnesia's avatar
amnesia committed
21

22
# Options passed to isohybrid
23
AMNESIA_ISOHYBRID_OPTS="-h 255 -s 63 --id 42 --verbose"
24

intrigeri's avatar
intrigeri committed
25
# Kernel version
26
KERNEL_VERSION='5.7.0-1'
27 28 29 30
KERNEL_SOURCE_VERSION=$(
   echo "$KERNEL_VERSION" \
       | perl -p -E 's{\A (\d+ [.] \d+) [.] .*}{$1}xms'
)
intrigeri's avatar
intrigeri committed
31

intrigeri's avatar
intrigeri committed
32
### You should not have to change anything below this line ####################
amnesia's avatar
amnesia committed
33

34 35 36 37 38 39
# sanity checks
if [ ! -x "`which dpkg-parsechangelog`" ]; then
   echo "could not find dpkg-parsechangelog, please apt-get install dpkg-dev" >&2
   exit 2
fi

amnesia's avatar
amnesia committed
40
# Compute the current Amnesia's version once for all
Tails developers's avatar
Tails developers committed
41
AMNESIA_NOW="`date --utc '+%Y%m%dT%H%MZ'`"
42
AMNESIA_VERSION="`dpkg-parsechangelog -SVersion`"
43
AMNESIA_FULL_VERSION="${AMNESIA_VERSION} - ${SOURCE_DATE_YYYYMMDD}"
44

amnesia's avatar
amnesia committed
45
# Developpers' data used by git-dch, debcommit and friends in the release script
46
AMNESIA_DEV_FULLNAME='Tails developers'
Tails developers's avatar
Tails developers committed
47
AMNESIA_DEV_EMAIL="tails@boum.org"
48
AMNESIA_DEV_KEYID="A490 D0F4 D311 A415 3E2B  B7CA DBB8 02B2 58AC D84F"
49 50 51

# Used to set a custom home page if the distribution is UNRELEASED
TAILS_DISTRIBUTION="`dpkg-parsechangelog -SDistribution`"