Make specification of NETMASK and GATEWAY mandatory; they cannot be
[invirt/packages/invirt-autoinstaller.git] / common / usr / sbin / invirt-create-image
index a00561b..a55c85e 100644 (file)
@@ -4,20 +4,10 @@
 #  TARGET a device filename
 #  FSSIZE the desired filesystem size in mebibytes (rest will be swap)
 #  ARCH, DIST, MIRROR
-#  HOSTNAME, IP
-#
-# Optional: GATEWAY, NETMASK.  These default to values in invirt-getconf, if installed
+#  HOSTNAME, IP, GATEWAY, NETMASK
 
 set -e
 
-if [ "$GATEWAY" = "" ]; then
-    GATEWAY=$(invirt-getconf autoinstaller.gateway)
-fi
-
-if [ "$NETMASK" = "" ]; then
-    NETMASK=$(invirt-getconf autoinstaller.netmask)
-fi
-
 echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
 
 dmsetup info "$TARGET" 2>/dev/null && kpartx -a "$TARGET"