From 26d6e273fdfcf12b3a2cd2307a9ddd70d93e7743 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Tue, 19 Aug 2008 17:48:56 -0400 Subject: [PATCH] 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 --- initchroot.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.39.5