Commit 8929dcc0 authored by David Johnson's avatar David Johnson
Browse files

Add Debian 8/9 (jessie/stretch) Docker support.

Also assume debian9 == ubuntu16.  Also fix some ubuntu15 install bugs.
parent 013bfc33
......@@ -109,6 +109,9 @@ endif
ifeq ($(MDSUBDIR),debian8)
MDSUBDIR = ubuntu15
endif
ifeq ($(MDSUBDIR),debian9)
MDSUBDIR = ubuntu16
endif
# We don't want to have a dir named "arch"; that would be confusing.
# Hence archlinux.
ifeq ($(MDSUBDIR),arch)
......
#!/bin/sh
set -x
apt-get clean
rm -rf /var/lib/apt/lists/*
rm -f /tmp/apt-updated
rm -rf /tmp/* /var/tmp*
exit 0
#!/bin/sh
# system one time tasks
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
/etc/init.d/rcS
/etc/init.d/rmnologin
touch /etc/runit/stopit
chmod 0 /etc/runit/stopit
#!/bin/sh
#
# Run our service dir. We don't mess with runlevels; just run all the
# things.
#
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
if [ -f /etc/envvars ]; then
. /etc/envvars
fi
exec env - PATH=$PATH \
runsvdir -P /etc/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
#!/bin/sh
exec 2>&1
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
LAST=0
test -x /etc/runit/reboot && LAST=6
echo 'Waiting for services to stop...'
sv -w196 force-stop /etc/service/*
sv exit /etc/service/*
echo 'Shutdown...'
/etc/init.d/rc $LAST
#!/bin/sh
# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 \
&& (touch /etc/service/pubsubd/down ; exit 0)
if [ -f /etc/init.d/pubsubd ]; then
exec /etc/init.d/pubsubd stop
else
touch /etc/service/pubsubd/down
fi
exit 0
#!/bin/sh
# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 \
&& (touch /etc/service/pubsubd/down ; exit 0)
if [ -f /etc/init.d/pubsubd ]; then
/etc/init.d/pubsubd start
if [ ! $? -eq 0 ]; then
echo "Failed to start /etc/init.d/pubsubd: $?"
exit $?
fi
#
# runit expects the run file to continue execution until death.
#
while [ 1 -eq 1 ]; do
sleep 60
done
else
touch /etc/service/pubsubd/down
fi
exit 0
#!/bin/sh
# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 && exit 0
. /etc/default/rsyslog
exec /usr/sbin/rsyslogd -n $RSYSLOGD_OPTIONS
#!/bin/sh
# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 && exit 0
mkdir -p /var/run/sshd
exec /usr/sbin/sshd -D
#!/bin/sh
# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 && exit 0
if [ -f /usr/local/etc/emulab/initscripts/tbprepare ]; then
exec /usr/local/etc/emulab/initscripts/tbprepare stop
fi
exit 0
#!/bin/sh
# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 \
&& (touch /etc/service/testbed/down ; exit 0)
if [ -f /usr/local/etc/emulab/initscripts/testbed ]; then
exec /usr/local/etc/emulab/initscripts/testbed stop
fi
exit 0
#!/bin/sh
# Never run if systemd is running; it will do this.
[ -f /bin/systemctl ] && /bin/systemctl show-environment >/dev/null 2>&1 \
&& (touch /etc/service/testbed/down ; exit 0)
if [ -f /usr/local/etc/emulab/initscripts/testbed ]; then
/usr/local/etc/emulab/initscripts/testbed start
if [ ! $? -eq 0 ]; then
echo "Failed to start /usr/local/etc/emulab/initscripts/testbed: $?"
exit $?
fi
#
# runit expects the run file to continue execution until death.
#
while [ 1 -eq 1 ]; do
sleep 60
done
else
touch /etc/service/testbed/down
fi
exit 0
#!/bin/sh
export LANG=en_US.UTF-8
export LANGUAGE=en_US:en
export LC_ALL=en_US.UTF-8
export INITRD=no
export container=docker
export > /etc/envvars
exec /sbin/runit-init
#!/bin/sh
set -x
export DEBIAN_FRONTEND=noninteractive
[ ! -f /tmp/apt-updated ] && apt-get update && touch /tmp/apt-updated
exit 0
{
"HostConfig" : {
"SecurityOpt" : [ "seccomp=unconfined" ],
"Tmpfs" : {
"/run" : "",
"/run/lock":""
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment