scripts to make installation of custom debian easier and more automated
git clone git://
Log | Files | Refs | README | LICENSE

commit 6946356c87eaa56e4a61ad84fc6dd9efd73aa4c6
parent 33dc3427ad528528fdaf1e3eafe96f66e83c3451
Author: Morel BĂ©renger <>
Date:   Sun, 13 Dec 2020 01:29:10 +0100

summons script to create default configuration

Diffstat: | 4++++
Atemplates/generic/config | 10++++++++++
2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/ b/ @@ -191,6 +191,10 @@ info "preparing to install $PKG_LIST (this will take some silent time)" debootstrap --no-merged-usr --variant=minbase "--include=$PKG_LIST" $(cat $SOURCE/distname) "$cp_target" "$MIRROR" 2>&1 >/dev/null success "install done" +info "basic configuration steps" +. ./$SOURCE/config +success "basic configuration done" + info "cleaning target's /var/cache/apt" rm -r /"$cp_target"/var/cache/apt/archives/*.deb success "cleaning done" diff --git a/templates/generic/config b/templates/generic/config @@ -0,0 +1,10 @@ +sed -i /"$cp_target"/etc/runit/2 \ + -e '/^exec env/ iip link set lo up\nloadkeys fr\n' + +FIRST_LINK="$(echo $(ip link | awk -F: '/^[0-9]*:/{if($2!=" lo"){print $2;exit}}'))" + +ln -s /etc/sv/udev /"$cp_target"/etc/service/ +ln -s /etc/sv/bb-udhcpc /"$cp_target"/etc/service/$FIRST_LINK +ln -s /etc/sv/bb-syslogd /"$cp_target"/etc/service/syslogd +ln -s /etc/sv/bb-syslogd /"$cp_target"/etc/service/klogd +ln -s /etc/sv/bb-syslogd /"$cp_target"/etc/service/ssh