From 29cd6beebf4a35bf178028e13917eb275fe6c66e Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 22 May 2013 16:55:38 +0100 Subject: scripts/sid, scripts/gutsy: Add a policy-rc.d, matching that in debian-installer-utils. This is the primary way to disable daemon startup. --- debian/changelog | 3 +++ scripts/gutsy | 6 ++++++ scripts/sid | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/debian/changelog b/debian/changelog index 492e338..0da444a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ debootstrap (1.0.52) UNRELEASED; urgency=low * scripts/gutsy: Make the fake initctl pass through "initctl version" calls, used by such things as invoke-rc.d to figure out whether it's running under Upstart (LP: #1182540). + * scripts/sid, scripts/gutsy: Add a policy-rc.d, matching that in + debian-installer-utils. This is the primary way to disable daemon + startup. -- Colin Watson Wed, 22 May 2013 16:28:27 +0100 diff --git a/scripts/gutsy b/scripts/gutsy index 4e88b9e..992d605 100644 --- a/scripts/gutsy +++ b/scripts/gutsy @@ -150,6 +150,11 @@ second_stage_install () { sed -i '/dpkg.*--compare-versions/ s/\/lt-nl/' "$TARGET/var/lib/dpkg/info/initscripts.postinst" fi + echo \ +"#!/bin/sh +exit 101" > "$TARGET/usr/sbin/policy-rc.d" + chmod 755 "$TARGET/usr/sbin/policy-rc.d" + mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL" echo \ "#!/bin/sh @@ -209,6 +214,7 @@ echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl" mv "$TARGET/sbin/initctl.REAL" "$TARGET/sbin/initctl" fi mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon" + rm -f "$TARGET/usr/sbin/policy-rc.d" progress $bases $bases CONFBASE "Configuring base system" info BASESUCCESS "Base system installed successfully." diff --git a/scripts/sid b/scripts/sid index 893d5d5..0e2c12d 100644 --- a/scripts/sid +++ b/scripts/sid @@ -139,6 +139,11 @@ second_stage_install () { info CONFREQ "Configuring required packages..." + echo \ +"#!/bin/sh +exit 101" > "$TARGET/usr/sbin/policy-rc.d" + chmod 755 "$TARGET/usr/sbin/policy-rc.d" + mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL" echo \ "#!/bin/sh @@ -185,6 +190,7 @@ echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/ dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon" + rm -f "$TARGET/usr/sbin/policy-rc.d" progress $bases $bases CONFBASE "Configuring base system" info BASESUCCESS "Base system installed successfully." -- cgit v0.12