From: David Galloway Date: Fri, 1 Dec 2017 16:19:35 +0000 (-0500) Subject: cobbler: Install grub to /dev/sda instead of whatever default is X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F354%2Fhead;p=ceph-cm-ansible.git cobbler: Install grub to /dev/sda instead of whatever default is Apparently on some machines (namely bruuni in Octo), the default disk returns /dev/nvme0n1 which is not where the OS is installed. Since we already define which disk the OS should be installed on earlier in the preseed, it only makes sense to install grub on the same disk. Signed-off-by: David Galloway --- diff --git a/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed b/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed index c543196d..7010333f 100644 --- a/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed +++ b/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed @@ -115,9 +115,9 @@ d-i pkgsel/upgrade select safe-upgrade # "landscape" (manage system with Landscape). d-i pkgsel/update-policy select none -# Set GRUB bootdev to 'default' if Xenial or later +# Set GRUB bootdev to '/dev/sda' if Xenial or later #if int($distro_ver_major) >= 16 -d-i grub-installer/bootdev string default +d-i grub-installer/bootdev string /dev/sda #end if # During installations from serial console, the regular virtual consoles