]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Only set bootdev in kickstart if installing Xenial. 234/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 27 Apr 2016 21:00:00 +0000 (17:00 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 27 Apr 2016 23:15:00 +0000 (19:15 -0400)
"bootdev string default" is only supported in Xenial.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed

index 5cd0ff0dceb7d26b77bb6274f9c20cd9518d5a8e..abcf51a5195e9d699ab56fda2ce37e0c82001dc7 100644 (file)
@@ -3,6 +3,12 @@
 # Fetch the os_version from the distro using this profile.
 #set os_version = $getVar('os_version','')
 
+# Fetch Ubuntu version (e.g., 14.04)
+#set distro_ver = $getVar('distro','').split("-")[1]
+
+# Fetch Ubuntu major version (e.g., 14)
+#set distro_ver_major = $distro_ver.split(".")[0]
+
 ### Apt setup
 # You can choose to install non-free and contrib software.
 #d-i apt-setup/non-free boolean true
@@ -109,8 +115,8 @@ d-i pkgsel/upgrade select safe-upgrade
 # "landscape" (manage system with Landscape).
 d-i pkgsel/update-policy select none
 
-# Install GRUB to default location.  Required as of Xenial.
-#if $os_version == 'xenial'
+# Set GRUB bootdev to 'default' if Xenial or later
+#if int($distro_ver_major) >= 16
 d-i grub-installer/bootdev  string default
 #end if