X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=55886f943aa3fc58ca0454b0a5b821840ac9cbf7;hp=b192b8a2f5c55535626424820c9a452a9d69b06b;hb=574c42b5cbb9d1264b84bade255aed42547db8ec;hpb=9b4f4a4961b8935e3a3906f05fb17aca0ad2b847 diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index b192b8a..55886f9 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -83,29 +83,21 @@ EOF 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: - 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 +fcopy -r /etc/apt -# install all present (but at least the grml) gpg keys: -if [ -r /etc/grml/fai/files/etc/apt/grml.key ] ; then - for file in /etc/grml/fai/files/etc/apt/*.key ; do - FILE="$(basename $file)" - # installed via 'cp -a /etc/grml/fai/files/etc/apt/* $target/etc/apt/' above already - # cp $file $target/etc/apt/"$FILE" - $ROOTCMD apt-key add /etc/apt/"$FILE" - done -else - gpg --keyserver subkeys.pgp.net --recv-keys F61E2E7CECDEA787 || \ - gpg --keyserver blackhole.pca.dfn.de --recv-keys F61E2E7CECDEA787 - gpg --export F61E2E7CECDEA787 > $target/etc/apt/grml.key - $ROOTCMD apt-key add /etc/apt/grml.key +# remove grml-live's sources.list file from chroot: +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 +# install grml gpg key: +fcopy /etc/apt/grml.key +$ROOTCMD apt-key add /etc/apt/grml.key +# gpg --keyserver subkeys.pgp.net --recv-keys F61E2E7CECDEA787 || \ +# gpg --keyserver blackhole.pca.dfn.de --recv-keys F61E2E7CECDEA787 +# gpg --export F61E2E7CECDEA787 > $target/etc/apt/grml.key +# $ROOTCMD apt-key add /etc/apt/grml.key + # make sure the file exists [ -e $target/etc/apt/apt.conf ] || touch $target/etc/apt/apt.conf