diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 500: Prevent daemons to start in the chroot (LP: #912782)

Message ID 20120321154910.16519.71235.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Fathi Boudra March 21, 2012, 3:49 p.m. UTC
Merge authors:
  Fathi Boudra (fboudra)
Related merge proposals:
  https://code.launchpad.net/~fboudra/linaro-image-tools/bug-912782/+merge/98604
  proposed by: Fathi Boudra (fboudra)
  review: Approve - Fathi Boudra (fboudra)
------------------------------------------------------------
revno: 500 [merge]
committer: Fathi Boudra <fathi.boudra@linaro.org>
branch nick: linaro-image-tools
timestamp: Wed 2012-03-21 17:47:15 +0200
message:
  Prevent daemons to start in the chroot (LP: #912782)
modified:
  linaro-hwpack-install


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'linaro-hwpack-install'
--- linaro-hwpack-install	2011-12-06 03:35:46 +0000
+++ linaro-hwpack-install	2012-03-21 10:32:24 +0000
@@ -89,6 +89,7 @@ 
   # Ensure our temp dir and apt sources are removed.
   echo -n "Cleaning up ..."
   rm -rf $TEMP_DIR
+  rm -f /usr/sbin/policy-rc.d
   $sudo apt-get update -qq
   echo "Done"
 }
@@ -148,6 +149,10 @@ 
   $sudo apt-key add $file
 done
 
+# Prevent daemons to start in the chroot
+echo "exit 101" > /usr/sbin/policy-rc.d
+chmod a+x /usr/sbin/policy-rc.d
+
 # Add one extra apt source for the packages included in the hwpack and make
 # sure it's the first on the list of sources so that it gets precedence over
 # the others.