Support for RHEL_VERSION=6.0 in rhel_print_iso.
authorMartin Schwenke <martin@meltin.net>
Thu, 13 Jan 2011 03:42:17 +0000 (14:42 +1100)
committerMartin Schwenke <martin@meltin.net>
Thu, 13 Jan 2011 03:42:17 +0000 (14:42 +1100)
Signed-off-by: Martin Schwenke <martin@meltin.net>
config.d/00base.defconf

index cce4c52d9bcdc293df05a20ef2859c3e1c9d2fb9..21de136a428afa60b697398554f29cb65b7acae1 100644 (file)
@@ -223,15 +223,21 @@ rhel_print_iso ()
     # Prints: a value for ISO
 
     local datever
+
     case "$RHEL_VERSION" in
        (5.1) datever="20071017.0";;
        (5.2) datever="20080430.0";;
        (5.3) datever="20090106.0";;
        (5.4) datever="20090819.0";;
        (5.5) datever="20100322.0";;
+       (6.0) datever="20100922.1";;
+       (*) die "Unknow RHEL_VERSION in rhel_print_iso" ;;
     esac
 
-    echo "RHEL${RHEL_VERSION}-Server-${datever}-${RHEL_ARCH}-DVD.iso"
+    case "$RHEL_VERSION" in
+       (5.*) echo "RHEL${RHEL_VERSION}-Server-${datever}-${RHEL_ARCH}-DVD.iso"  ;;
+       (6.*) echo "RHEL${RHEL_VERSION}-${datever}-Server-${RHEL_ARCH}-DVD1.iso" ;;
+    esac
 }
 
 # yum repo infrastructure