]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Install grub to /dev/sda instead of whatever default is 354/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 1 Dec 2017 16:19:35 +0000 (11:19 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 1 Dec 2017 16:21:40 +0000 (11:21 -0500)
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 <dgallowa@redhat.com>
roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed

index c543196d22a29e84f61da61b240e66b96450d212..7010333f6cc49523361464d29741245143f62c97 100644 (file)
@@ -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