- # make sure we can handle kernel upgrades:
- if [ -r $target/etc/kernel-img.conf ] ; then
- if ! grep -q "silent_modules = Yes" $target/etc/kernel-img.conf ; then
- echo "silent_modules = Yes" >> $target/etc/kernel-img.conf
- fi
+ # run it on our own, as updatebase is used at the wrong stage for our needs,
+ # see ${GRML_FAI_CONFIG}/hooks/updatebase.GRMLBASE
+ # the apt-get update might return an error if there's for example
+ # a hashsum mismatch on Debian mirror sources, we might want to continue
+ # but should warn the user
+ if ! $ROOTCMD apt-get update ; then
+ echo "Warning: there was an error executing apt-get update, continuing anyway."