X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=e14ca21b6a5e97cc7b931883e2a5082b157a430a;hp=e1c183a635d82e043db5982bcb50d27cd34eef25;hb=3e504efb7af3ec5ab9b76104d626bf0e23c2fab3;hpb=15a11433dd0fc15f7a16130578d1a50bd1cdcdcf diff --git a/chroot-script b/chroot-script index e1c183a..e14ca21 100755 --- a/chroot-script +++ b/chroot-script @@ -36,9 +36,9 @@ if [ -x /usr/bin/aptitude ] ; then APTUPGRADE="aptitude -y safe-upgrade $DPKG_OPTIONS" fi else - APTINSTALL="apt-get --force-yes -y --no-install-recommends install $DPKG_OPTIONS" + APTINSTALL="apt-get -y --no-install-recommends install $DPKG_OPTIONS" APTUPDATE="apt-get update $DPKG_OPTIONS" - APTUPGRADE="apt-get --force-yes -y upgrade $DPKG_OPTIONS" + APTUPGRADE="apt-get -y upgrade $DPKG_OPTIONS" fi if [ -z "$STAGES" ] ; then @@ -585,11 +585,13 @@ grub_install() { echo "Installing grub on ${GRUB}:" grub-install --no-floppy "$GRUB" done + rm -f /boot/grub/device.map else echo "Installing grub on ${GRUB}:" case "$RELEASE" in lenny|squeeze|wheezy) grub-install --no-floppy "$(readlink -f "${GRUB}")" + rm -f /boot/grub/device.map ;; *) echo "(hd0) ${GRUB}" > /boot/grub/device.map