Update all scripts with workaround for qemu
Every so often qemu will complain that a package with a lot of files in it, typical icons, is corrupt when it is not. Add in a little workaround that checks that apt-get install didn't error out and if it did, re-run to fix it. Also add in the 3 patches for veyron, as well as a new kernel config. Also remove my internal nameserver from veyron so people stop running into issues when building the image.
This commit is contained in:
4
bbb.sh
4
bbb.sh
@@ -108,6 +108,10 @@ sed -i -e 's/KERNEL\!=\"eth\*|/KERNEL\!=\"/' /lib/udev/rules.d/75-persistent-net
|
||||
rm -f /etc/udev/rules.d/70-persistent-net.rules
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --yes --force-yes install $packages
|
||||
if [ $? > 0 ];
|
||||
then
|
||||
apt-get --yes --allow-change-held-packages --fix-broken install
|
||||
fi
|
||||
apt-get --yes --force-yes dist-upgrade
|
||||
apt-get --yes --force-yes autoremove
|
||||
|
||||
|
||||
Reference in New Issue
Block a user