From: Andres Salomon Date: Wed, 20 Aug 2008 04:25:53 +0000 (-0400) Subject: initchroot: get rid of apt's bincaches during cleanup X-Git-Tag: v0.1~5 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79811e1b99c4ca96a6bf1f2dce56ade82dd62d98;p=xodist initchroot: get rid of apt's bincaches during cleanup Having stale pkgcache.bin stuff from chroot creation was causing funky mmap errors Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index bed450a..0bb249f 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -130,7 +130,6 @@ mkdir -p ${ROOT_DIR}/etc/gconf/debxo.xml.defaults cp %gconf-tree.xml ${ROOT_DIR}/etc/gconf/debxo.xml.defaults/ # add default user -rm -rf ${ROOT_DIR}/home/*; # i have no idea what's adding this crap... (chroot ${ROOT_DIR} passwd -l root) (chroot ${ROOT_DIR} useradd -s /bin/bash --create-home ${DEFUSER}) (chroot ${ROOT_DIR} passwd -d ${DEFUSER}) @@ -147,3 +146,5 @@ 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 +rm -rf ${ROOT_DIR}/home/*; # i have no idea what's adding this crap... +rm -f ${ROOT_DIR}/var/cache/apt/*.bin