Add sysvinit method to existing upstart support in script for native chroots to disable starting daemons. (Closes: #611188)
git-svn-id: http://emdebian.org/svn/current@7726 563faec7-e20c-0410-992a-a66f704d0ccdmain
parent
45486ea13e
commit
5d71a7fed3
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# The script is called with the following arguments:
|
||||
|
||||
# $1 = $DIR - the top directory of the debootstrapped system
|
||||
# $2 = $ARCH - the specified architecture, already checked with dpkg-architecture.
|
||||
|
||||
# setup.sh needs to be executable.
|
||||
if [ -d $1 ]; then
|
||||
mkdir -p $1/usr/sbin/
|
||||
cat > $1/usr/sbin/policy-rc.d << EOF
|
||||
#!/bin/sh
|
||||
echo "All runlevel operations denied by policy" >&2
|
||||
EOF
|
||||
chmod a+x $1/usr/sbin/policy-rc.d
|
||||
fi
|
@ -0,0 +1,30 @@
|
||||
# Example multistrap configuration file for native chroots.
|
||||
|
||||
[General]
|
||||
arch=
|
||||
directory=
|
||||
# same as --tidy-up option if set to true
|
||||
cleanup=true
|
||||
# same as --no-auth option if set to true
|
||||
# keyring packages listed in each debootstrap will
|
||||
# still be installed.
|
||||
noauth=false
|
||||
# whether to add the /suite to be explicit about where apt
|
||||
# needs to look for packages. Default is false.
|
||||
explicitsuite=false
|
||||
# extract all downloaded archives (default is true)
|
||||
unpack=true
|
||||
# this setupscript is just for native chroots
|
||||
# to stop daemons from starting during configuration.
|
||||
setupscript=/usr/share/multistrap/chroot.sh
|
||||
# the order of sections is not important.
|
||||
# the debootstrap option determines which repository
|
||||
# is used to calculate the list of Priority: required packages.
|
||||
debootstrap=Debian
|
||||
aptsources=Debian
|
||||
|
||||
[Debian]
|
||||
packages=apt
|
||||
source=http://ftp.uk.debian.org/debian
|
||||
keyring=debian-archive-keyring
|
||||
suite=squeeze
|
Loading…
Reference in New Issue