X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FGRUB_PC%2F11-iank;fp=fai%2Fconfig%2Fscripts%2FGRUB_PC%2F11-iank;h=7cb6a0342877a3565793b63f33ebde54c94cdc53;hb=53db7c23cb11661c98a08d69295bb315c392003b;hp=1849d60299660a467be6e79cfd3257d6be068638;hpb=955824332a28a4b7dc6683808274bd6302c7ead1;p=automated-distro-installer diff --git a/fai/config/scripts/GRUB_PC/11-iank b/fai/config/scripts/GRUB_PC/11-iank index 1849d60..7cb6a03 100755 --- a/fai/config/scripts/GRUB_PC/11-iank +++ b/fai/config/scripts/GRUB_PC/11-iank @@ -53,7 +53,8 @@ fi # these get copied in an earlier stage by fai, but leaving it here since # I run this as a single post-fai script to update things that have changed. tmpfile1=$(mktemp) -chroot $FAI_ROOT /usr/bin/apt-cache policy >$tmpfile1 +# this can fail if we need an apt update +chroot $FAI_ROOT /usr/bin/apt-cache policy >$tmpfile1 ||: fcopy -riBM /etc/apt tmpfile2=$(mktemp) chroot $FAI_ROOT /usr/bin/apt-cache policy >$tmpfile2