From: Andres Salomon Date: Tue, 19 Aug 2008 21:48:56 +0000 (-0400) Subject: initchroot: create a fake start-stop-daemon X-Git-Tag: v0.1~17 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=commitdiff_plain;h=26d6e273fdfcf12b3a2cd2307a9ddd70d93e7743 initchroot: create a fake start-stop-daemon we really don't want to be launching daemons.. and besides, openntpd breaks during install due to the chroot. Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index 9d5f4a8..2caef4b 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -48,6 +48,15 @@ debootstrap --arch i386 lenny ${ROOT_DIR} http://http.us.debian.org/debian mount -t proc proc ${ROOT_DIR}/proc mount -t devpts devpts ${ROOT_DIR}/dev/pts +# allow daemons to be installed without breaking +mv ${ROOT_DIR}/sbin/start-stop-daemon ${ROOT_DIR}/sbin/start-stop-daemon.REAL +cat >${ROOT_DIR}/sbin/start-stop-daemon<> ${ROOT_DIR}/etc/sudoers # done, clean up +mv ${ROOT_DIR}/sbin/start-stop-daemon.REAL ${ROOT_DIR}/sbin/start-stop-daemon (chroot ${ROOT_DIR} aptitude clean) umount ${ROOT_DIR}/proc umount ${ROOT_DIR}/dev/pts