浏览代码

Install grub2 on non-arm architectures

Bob Mottram 9 年前
父节点
当前提交
f19e0195af
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/freedombone-image-customise

+ 3
- 0
src/freedombone-image-customise 查看文件

1012
 chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp
1012
 chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp
1013
 chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools wpasupplicant
1013
 chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools wpasupplicant
1014
 chroot "$rootdir" apt-get install -y usbutils cryptsetup zsh pinentry-curses iotop bc
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
 sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
1019
 sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
1017
 sed -i "s|host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
1020
 sed -i "s|host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf