From cede3f14a47999fc54fb6bcec1749e6da82bc4b0 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 31 May 2020 20:30:03 -0400 Subject: move file into rootfs/ --- rootfs/patchroot.sh | 23 +++++++++++++++++++++++ rootfs/samiztest.yaml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 rootfs/patchroot.sh (limited to 'rootfs') 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 @@ +#!/bin/sh +hostname=adam +echo $hostname > /etc/hostname +sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts + +. /etc/os-release + +# TODO: Write this in fsmgr +cat < /etc/apt/sources.list +deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free +deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free +#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free +END + +set -- /var/lib/apt/lists/*_Packages +if [ -f "$1" ] +then + # apt database validity demonstration + apt-get update + apt-cache dumpavail | dpkg --update-avail - + apt-get -yd install iso-codes # baresip + apt-mark install baresip +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 @@ parent: samizdat binaries: -- '../patchroot.sh' +- './patchroot.sh' seedme: 600000000 apt-update: true -- cgit v1.2.3