projects
/
invirt/packages/invirt-autoinstaller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eae799
)
Changed xen.network -> xen; fixed style for omitted option
0.0.33
author
Greg Brockman
<gdb@mit.edu>
Mon, 18 Jan 2010 00:08:13 +0000
(19:08 -0500)
committer
Greg Brockman
<gdb@mit.edu>
Mon, 18 Jan 2010 00:08:13 +0000
(19:08 -0500)
svn path=/trunk/packages/invirt-autoinstaller/; revision=2899
common/usr/sbin/invirt-create-image
patch
|
blob
|
history
diff --git
a/common/usr/sbin/invirt-create-image
b/common/usr/sbin/invirt-create-image
index
9e555a5
..
17f9d03
100644
(file)
--- a/
common/usr/sbin/invirt-create-image
+++ b/
common/usr/sbin/invirt-create-image
@@
-10,12
+10,12
@@
set -e
-if [ "$GATEWAY" = "" ]; then
- GATEWAY=$(invirt-getconf xen.network.gateway)
+if [ -z "$GATEWAY" ]; then
+ GATEWAY=$(invirt-getconf network.gateway)
fi
-if [ "$NETMASK" = "" ]; then
- NETMASK=$(invirt-getconf xen.network.netmask)
+if [ -z "$NETMASK" ]; then
+ NETMASK=$(invirt-getconf network.netmask)
fi
echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"