Pārlūkot izejas kodu

Install grub2 on non-arm architectures

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
f19e0195af
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3
    0
      src/freedombone-image-customise

+ 3
- 0
src/freedombone-image-customise Parādīt failu

@@ -1012,6 +1012,9 @@ chroot "$rootdir" apt-get install -y iptables dnsutils net-tools network-manager
1012 1012
 chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp
1013 1013
 chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools wpasupplicant
1014 1014
 chroot "$rootdir" apt-get install -y usbutils cryptsetup zsh pinentry-curses iotop bc
1015
+if [[ $ARCHITECTURE == 'i386' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' ]]; then
1016
+    chroot "$rootdir" apt-get install -y grub2
1017
+fi
1015 1018
 
1016 1019
 sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
1017 1020
 sed -i "s|host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf