From 661eacb405f2759d4c31143c146dd677a004d268 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Thu, 3 Mar 2005 23:15:24 +0000 Subject: [PATCH] cleanup for kubuntu --- debian/changelog | 6 ++++++ livecd.sh | 17 ++--------------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8e03db64..3174a3e4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (0.16) hoary; urgency=low + + * Bunch of cleanup for kubunut-live. + + -- LaMont Jones Thu, 3 Mar 2005 16:02:21 -0700 + livecd-rootfs (0.15) hoary; urgency=low * Can't have arch-specific Depends. Poor partimage. diff --git a/livecd.sh b/livecd.sh index ae3e8329..d646e0cb 100755 --- a/livecd.sh +++ b/livecd.sh @@ -16,6 +16,7 @@ cleanup() { } 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 echo killing $PIDLIST @@ -100,13 +101,9 @@ Flags: seen esac LIST="$LIST xresprobe laptop-detect" - # need to defer udev until the apt-get, since debootstrap doesn't believe - # in diversions - debootstrap --exclude=udev,ubuntu-base $STE $ROOT $MIRROR + debootstrap $STE $ROOT $MIRROR # Just make a few things go away, which lets us skip a few other things. - # sadly, udev's postinst does some actual work, so we can't just make it - # go away completely. DIVERTS="usr/sbin/mkinitrd usr/sbin/invoke-rc.d" for file in $DIVERTS; do mkdir -p ${ROOT}${file%/*} @@ -165,16 +162,6 @@ en_ZA.UTF-8 UTF-8 # Create a good sources.list, and finish the install echo deb $MIRROR $STE main restricted > ${ROOT}etc/apt/sources.list chroot $ROOT apt-get update - - # I really, really, really hate udev some days. - chroot $ROOT apt-get -y install udev < /dev/null - kill_users - umount ${ROOT}/dev/shm || true - umount ${ROOT}/dev/pts || true - umount ${ROOT}/.dev || true - umount ${ROOT}/dev || exit 5 # this one is fatal - mount -tdevpts none ${ROOT}/dev/pts - mount -ttmpfs none ${ROOT}/dev/shm chroot $ROOT apt-get -y install $LIST