From f19e0195af7eb3d9548447a52c15c13919408c48 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 23 Sep 2016 11:51:30 +0100 Subject: [PATCH] Install grub2 on non-arm architectures --- src/freedombone-image-customise | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 011e9b2c..5b469d3a 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1012,6 +1012,9 @@ chroot "$rootdir" apt-get install -y iptables dnsutils net-tools network-manager chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools wpasupplicant chroot "$rootdir" apt-get install -y usbutils cryptsetup zsh pinentry-curses iotop bc +if [[ $ARCHITECTURE == 'i386' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' ]]; then + chroot "$rootdir" apt-get install -y grub2 +fi sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf sed -i "s|host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf