X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=bbabb90041a5e737afc4ad3ab841b96773fb0bf1;hp=d0a09f72ba00a527e3fe3bd2dc07c6079f7989de;hb=58c2dc6009ef62b39eb943cba5bdfc33e4813e47;hpb=e97a5d7afe24d326bae906fe1637e2f0cfd09065 diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index d0a09f7..bbabb90 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -82,6 +82,8 @@ else # no softupdate but fresh installation # install all apt related files if [ -r /etc/grml/fai/files/etc/apt ] ; then cp -a /etc/grml/fai/files/etc/apt/* $target/etc/apt/ + # remove grml-live's sources.list file from chroot: + grep -q GRML_LIVE_SOURCES $target/etc/apt/important_note.txt && rm $target/etc/apt/important_note.txt fi # install all present (but at least the grml) gpg keys: @@ -99,6 +101,9 @@ else $ROOTCMD apt-key add /etc/apt/grml.key fi +# make sure the file exists +[ -e $target/etc/apt/apt.conf ] || touch $target/etc/apt/apt.conf + # work around http://trac.lighttpd.net/trac/ticket/657 if ! grep -q 'Acquire::http::Pipeline-Depth.*0' $target/etc/apt/apt.conf ; then echo "Acquire::http::Pipeline-Depth 0; // added by grml-live" >> $target/etc/apt/apt.conf