hacks for update-inetd - see #236917

ubuntu/precise
LaMont Jones 20 years ago
parent 661eacb405
commit 0e0dfa13ec

@ -14,8 +14,8 @@ cleanup() {
[ -n "$DEV" ] && losetup -d $DEV || true [ -n "$DEV" ] && losetup -d $DEV || true
grep ${ROOT} /proc/mounts && return 1 || return 0 grep ${ROOT} /proc/mounts && return 1 || return 0
} }
kill_users() {
kill_users() {
set +e set +e
PIDLIST="$(ls -l /proc/*/root 2>/dev/null | grep -- " -> ${ROOT%/}" | sed -n 's/^.*proc.\([0-9]*\).*$/\1/p')" PIDLIST="$(ls -l /proc/*/root 2>/dev/null | grep -- " -> ${ROOT%/}" | sed -n 's/^.*proc.\([0-9]*\).*$/\1/p')"
while [ -n "${PIDLIST}" ]; do while [ -n "${PIDLIST}" ]; do
@ -82,6 +82,7 @@ for FS in "$@"; do
rm -rf ${ROOT} rm -rf ${ROOT}
export DEBIAN_FRONTEND=noninteractive # HACK for update-inetd
mkdir -p ${ROOT}var/cache/debconf mkdir -p ${ROOT}var/cache/debconf
cat << @@EOF > ${ROOT}var/cache/debconf/config.dat cat << @@EOF > ${ROOT}var/cache/debconf/config.dat
Name: debconf/frontend Name: debconf/frontend
@ -89,6 +90,7 @@ Template: debconf/frontend
Value: Noninteractive Value: Noninteractive
Owners: debconf Owners: debconf
Flags: seen Flags: seen
@@EOF @@EOF
case "$FS" in case "$FS" in

Loading…
Cancel
Save