Only do grub setup on first boot
This commit is contained in:
parent
35c6a6f9e2
commit
74bd83ca08
|
@ -1069,8 +1069,6 @@ function image_setup_utils {
|
||||||
|
|
||||||
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'i386' ]]; then
|
||||||
chroot "$rootdir" apt-get -yq install grub2
|
chroot "$rootdir" apt-get -yq install grub2
|
||||||
sed -i 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="quiet ifnames=0 slub_debug=FZP slab_nomerge page_poison=1"|g' $rootdir/etc/default/grub
|
|
||||||
chroot "$rootdir" update-grub
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chroot "$rootdir" apt-get -yq install locales locales-all debconf
|
chroot "$rootdir" apt-get -yq install locales locales-all debconf
|
||||||
|
@ -1382,8 +1380,6 @@ chroot "$rootdir" apt-get install -y locales locales-all debconf wireless-tools
|
||||||
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'i386' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' ]]; then
|
if [[ $ARCHITECTURE == 'qemu'* || $ARCHITECTURE == 'i386' || $ARCHITECTURE == 'i686' || $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'x86_64' ]]; then
|
||||||
chroot "$rootdir" apt-get install -y cryptsetup zsh pinentry-curses iotop bc
|
chroot "$rootdir" apt-get install -y cryptsetup zsh pinentry-curses iotop bc
|
||||||
chroot "$rootdir" apt-get install -y grub2 hostapd
|
chroot "$rootdir" apt-get install -y grub2 hostapd
|
||||||
sed -i 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="quiet ifnames=0 slub_debug=FZP slab_nomerge page_poison=1"|g' $rootdir/etc/default/grub
|
|
||||||
chroot "$rootdir" update-grub
|
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Reference in New Issue