From 79811e1b99c4ca96a6bf1f2dce56ade82dd62d98 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Wed, 20 Aug 2008 00:25:53 -0400 Subject: [PATCH] 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 --- initchroot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2