X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=c9932d83506c2076f83fec489cfef9c73a9f4536;hp=eb0204acfb719ccf846cbd8a97c29650bbc52c30;hb=ef74e870ca6a2b6f307d6390d7fb9f6964299551;hpb=77f1028ad87a19481e713e36fc506fd7807a5de7 diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index eb0204a..c9932d8 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -60,9 +60,11 @@ EOF $ROOTCMD ln -s /bin/true /usr/sbin/grub-probe fi - # Update package lists (so they exist at all), so we actually can - # install software. - $ROOTCMD apt-get update + # Update package lists (so they exist at all), so we can install + # software; if /var/lib/dpkg/available is empty, it was was probably + # cleaned by GRMLBASE/98-clean-chroot, so we need to rebuild it + # anyway + $ROOTCMD /usr/lib/dpkg/methods/apt/update /var/lib/dpkg/ apt apt if $FILE_RC ; then echo "Installing file-rc as FILE_RC class is enabled."