X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=a678e38560f5592bc14eda175ae78198ef944d92;hp=213f39c9afdde29b694d7fe76375c63a886b6201;hb=088fef04f9106288d97830ea81375ec80f095286;hpb=9036e8be7152d8aa3553a572ef7a7641ec21cfb4 diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 213f39c..a678e38 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -83,7 +83,9 @@ else # no softupdate but fresh installation 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: