X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Fupdatebase.GRMLBASE;h=a50168239cea6a02dbdda4754f1e2ed029000265;hp=b04e0ba4b7eb4ea46ca751117cc38d8f76ac0d85;hb=088fef04f9106288d97830ea81375ec80f095286;hpb=9036e8be7152d8aa3553a572ef7a7641ec21cfb4 diff --git a/etc/grml/fai/config/hooks/updatebase.GRMLBASE b/etc/grml/fai/config/hooks/updatebase.GRMLBASE index b04e0ba..a501682 100755 --- a/etc/grml/fai/config/hooks/updatebase.GRMLBASE +++ b/etc/grml/fai/config/hooks/updatebase.GRMLBASE @@ -31,7 +31,9 @@ else # no softupdate but updating chroot based on /etc/grml/fai/config/basefiles 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 + if [ -r $target/etc/apt/important_note.txt ] ; then + grep -q GRML_LIVE_SOURCES $target/etc/apt/important_note.txt && rm $target/etc/apt/important_note.txt + fi fi # install all present (but at least the grml) gpg keys: