diff options
Diffstat (limited to 'rootfs')
-rwxr-xr-x | rootfs/patchroot.sh | 23 | ||||
-rw-r--r-- | rootfs/samiztest.yaml | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/rootfs/patchroot.sh b/rootfs/patchroot.sh new file mode 100755 index 0000000..76eb26a --- /dev/null +++ b/rootfs/patchroot.sh | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | hostname=adam | ||
3 | echo $hostname > /etc/hostname | ||
4 | sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts | ||
5 | |||
6 | . /etc/os-release | ||
7 | |||
8 | # TODO: Write this in fsmgr | ||
9 | cat <<END > /etc/apt/sources.list | ||
10 | deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free | ||
11 | deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free | ||
12 | #deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free | ||
13 | END | ||
14 | |||
15 | set -- /var/lib/apt/lists/*_Packages | ||
16 | if [ -f "$1" ] | ||
17 | then | ||
18 | # apt database validity demonstration | ||
19 | apt-get update | ||
20 | apt-cache dumpavail | dpkg --update-avail - | ||
21 | apt-get -yd install iso-codes # baresip | ||
22 | apt-mark install baresip | ||
23 | fi | ||
diff --git a/rootfs/samiztest.yaml b/rootfs/samiztest.yaml index 4fcaa9f..42ca627 100644 --- a/rootfs/samiztest.yaml +++ b/rootfs/samiztest.yaml | |||
@@ -1,6 +1,6 @@ | |||
1 | parent: samizdat | 1 | parent: samizdat |
2 | binaries: | 2 | binaries: |
3 | - '../patchroot.sh' | 3 | - './patchroot.sh' |
4 | seedme: 600000000 | 4 | seedme: 600000000 |
5 | apt-update: true | 5 | apt-update: true |
6 | 6 | ||