sipb-xen-autoinstaller -> invirt-autoinstaller
[invirt/packages/invirt-autoinstaller.git] / common / usr / sbin / sipb-xen-create-image
diff --git a/common/usr/sbin/sipb-xen-create-image b/common/usr/sbin/sipb-xen-create-image
deleted file mode 100644 (file)
index 2e71fde..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-# Usage: no command-line args.
-# "arguments" come in environment:
-#  TARGET a device filename
-#  FSSIZE the desired filesystem size in megabytes (rest will be swap)
-#  ARCH, DIST, MIRROR
-#  HOSTNAME, IP
-
-set -e
-
-echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
-
-dmsetup info "$TARGET" 2>/dev/null && kpartx -a "$TARGET"
-
-xen-create-image --image-dev "${TARGET}1" --swap-dev "${TARGET}2" --fs ext3 --ide \
- --hostname "$HOSTNAME" --ip="$IP" --netmask=255.255.0.0 --gateway=18.181.0.1 \
- --arch "$ARCH" --dist "$DIST" --mirror "$MIRROR" --cache=yes --verbose
-
-dmsetup info "$TARGET" 2>/dev/null && kpartx -d "$TARGET"
-
-exit 0