From 0e0dfa13ecd6afb91289d9fa21be798c590962ec Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Fri, 4 Mar 2005 01:19:30 +0000 Subject: [PATCH] hacks for update-inetd - see #236917 --- livecd.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/livecd.sh b/livecd.sh index d646e0cb..94390fb8 100755 --- a/livecd.sh +++ b/livecd.sh @@ -14,8 +14,8 @@ cleanup() { [ -n "$DEV" ] && losetup -d $DEV || true grep ${ROOT} /proc/mounts && return 1 || return 0 } -kill_users() { +kill_users() { set +e PIDLIST="$(ls -l /proc/*/root 2>/dev/null | grep -- " -> ${ROOT%/}" | sed -n 's/^.*proc.\([0-9]*\).*$/\1/p')" while [ -n "${PIDLIST}" ]; do @@ -82,6 +82,7 @@ for FS in "$@"; do rm -rf ${ROOT} + export DEBIAN_FRONTEND=noninteractive # HACK for update-inetd mkdir -p ${ROOT}var/cache/debconf cat << @@EOF > ${ROOT}var/cache/debconf/config.dat Name: debconf/frontend @@ -89,6 +90,7 @@ Template: debconf/frontend Value: Noninteractive Owners: debconf Flags: seen + @@EOF case "$FS" in