weeks)
- PARTITION_STYLE: if 'none' the device will be formatted directly, if 'msdos'
a partition table will be installed on it. You need to have kpartx installed
- to use the 'msdos' option.
+ to use the 'msdos' option. The default is 'msdos' from Ganeti 2.0 onwards,
+ but still 'none' if installing under Ganeti 1.2
Note that the settings file is important on the node that the instance
is installed on, not the cluster master. This is indeed not a very good
: ${CUSTOMIZE_DIR:="@sysconfdir@/ganeti/instance-debootstrap.d"}
: ${GENERATE_CACHE:="yes"}
: ${CLEAN_CACHE:="14"} # number of days to keep a cache file
-: ${PARTITION_STYLE:="none"} # disk partition style
+if [ -z "$OS_API_VERSION" -o "$OS_API_VERSION" = "5" ]; then
+ DEFAULT_PARTITION_STYLE="none"
+else
+ DEFAULT_PARTITION_STYLE="msdos"
+fi
+: ${PARTITION_STYLE:=$DEFAULT_PARTITION_STYLE} # disk partition style
CACHE_DIR="@localstatedir@/cache/ganeti-instance-debootstrap"
# 'msdos': install an msdos partition table on the device, with a single
# partition on it
# (more styles may be added in the future)
+# The default is "msdos" from ganeti 2.0 onwards, but none if installing under
+# Ganeti 1.2 (os api version 5)
PARTITION_STYLE="none"