X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=df99f5b6587907dfba705fea04400e40fc730fb4;hp=4e94d66aea10d758c6663193a9d23604d44b872d;hb=961a5ebdae6d44584eba0d413f6541838865aead;hpb=49903421197591ef183b274bd9401edb2d9fa0fb diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 4e94d66..df99f5b 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -57,7 +57,10 @@ EOF if [ -L $target/etc/apt/sources.list ] ; then rm $target/etc/apt/sources.list fi - cp /etc/grml/fai/apt/sources.list $target/etc/apt/sources.list + cp /etc/grml/fai/apt/sources.list $target/etc/apt/sources.list.d/grml-live.list + if [ -r $target/etc/apt/sources.list.d/grml.list ] ; then + mv $target/etc/apt/sources.list.d/grml.list $target/etc/apt/sources.list.d/grml.unused + fi fi # run it on our own, as updatebase is used at the wrong stage for our needs, @@ -83,7 +86,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: