projects
/
invirt/packages/invirt-autoinstaller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweak autoinstall scripts
[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
index
ffba79d
..
997e12a
100644
(file)
--- a/
common/usr/sbin/sipb-xen-create-image
+++ b/
common/usr/sbin/sipb-xen-create-image
@@
-1,10
+1,13
@@
#!/bin/bash
# Usage: no command-line args.
# "arguments" come in environment:
#!/bin/bash
# Usage: no command-line args.
# "arguments" come in environment:
-# TARGET a device filename, IMAGESIZE its size in XXXX what unit?
+# TARGET a device filename
+# IMAGESIZE the desired filesystem size in megabytes (rest will be swap)
# ARCH, DIST, MIRROR
# HOSTNAME, IP
# ARCH, DIST, MIRROR
# HOSTNAME, IP
+set -e
+
echo ,"${IMAGESIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
kpartx -a "$TARGET" # should be no-op in guest
echo ,"${IMAGESIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
kpartx -a "$TARGET" # should be no-op in guest