- Timestamp:
- Jan 1, 2010, 11:48:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-autoinstaller/common/usr/sbin/invirt-create-image
r2161 r2844 6 6 # ARCH, DIST, MIRROR 7 7 # HOSTNAME, IP 8 # 9 # Optional: GATEWAY, NETMASK. These default to values in invirt-getconf, if installed 8 10 9 11 set -e 12 13 if [ "$GATEWAY" = "" ]; then 14 GATEWAY=$(invirt-getconf autoinstaller.gateway) 15 fi 16 17 if [ "$NETMASK" = "" ]; then 18 NETMASK=$(invirt-getconf autoinstaller.netmask) 19 fi 10 20 11 21 echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET" … … 14 24 15 25 xen-create-image --image-dev "${TARGET}1" --swap-dev "${TARGET}2" --fs ext3 --ide \ 16 --hostname "$HOSTNAME" --ip="$IP" --netmask= 255.255.0.0 --gateway=18.181.0.1\26 --hostname "$HOSTNAME" --ip="$IP" --netmask="$NETMASK" --gateway="$GATEWAY" \ 17 27 --arch "$ARCH" --dist "$DIST" --mirror "$MIRROR" --cache=yes --verbose 18 28
Note: See TracChangeset
for help on using the changeset viewer.