summaryrefslogtreecommitdiff
path: root/rootfs
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-31 20:30:03 -0400
committerAndrew Cady <d@jerkface.net>2020-05-31 20:30:03 -0400
commitcede3f14a47999fc54fb6bcec1749e6da82bc4b0 (patch)
tree242affe9162559a925bf788c0498951d0c116e72 /rootfs
parentcac7813c7dfad18b14945f7078ec135c6535a621 (diff)
move file into rootfs/
Diffstat (limited to 'rootfs')
-rwxr-xr-xrootfs/patchroot.sh23
-rw-r--r--rootfs/samiztest.yaml2
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
2hostname=adam
3echo $hostname > /etc/hostname
4sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts
5
6. /etc/os-release
7
8# TODO: Write this in fsmgr
9cat <<END > /etc/apt/sources.list
10deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free
11deb 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
13END
14
15set -- /var/lib/apt/lists/*_Packages
16if [ -f "$1" ]
17then
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
23fi
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 @@
1parent: samizdat 1parent: samizdat
2binaries: 2binaries:
3- '../patchroot.sh' 3- './patchroot.sh'
4seedme: 600000000 4seedme: 600000000
5apt-update: true 5apt-update: true
6 6