From 646440841475e2f2521f965b1ba99085204819cc Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 22 May 2013 16:42:41 +0100 Subject: 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). --- debian/changelog | 8 ++++++++ scripts/gutsy | 1 + 2 files changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index 792789d..492e338 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +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). + + -- Colin Watson Wed, 22 May 2013 16:28:27 +0100 + debootstrap (1.0.51) unstable; urgency=low [ Scott Kitterman ] diff --git a/scripts/gutsy b/scripts/gutsy index 90e1d5d..4e88b9e 100644 --- a/scripts/gutsy +++ b/scripts/gutsy @@ -161,6 +161,7 @@ echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/ mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL" echo \ "#!/bin/sh +if [ \"\$1\" = version ]; then exec /sbin/initctl.REAL \"\$@\"; fi echo echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl" chmod 755 "$TARGET/sbin/initctl" -- cgit v0.12