- Timestamp:
- Sep 28, 2008, 7:34:10 PM (16 years ago)
- Location:
- trunk/packages/sipb-xen-autoinstaller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-autoinstaller/common/usr/sbin/sipb-xen-create-image
r931 r937 2 2 # Usage: no command-line args. 3 3 # "arguments" come in environment: 4 # TARGET a device filename, IMAGESIZE its size in XXXX what unit? 4 # TARGET a device filename 5 # IMAGESIZE the desired filesystem size in megabytes (rest will be swap) 5 6 # ARCH, DIST, MIRROR 6 7 # HOSTNAME, IP 8 9 set -e 7 10 8 11 echo ,"${IMAGESIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET" -
trunk/packages/sipb-xen-autoinstaller/host/usr/sbin/sipb-xen-install
r931 r937 7 7 export PATH #WTF? 8 8 9 LVNAME="$1" 9 10 export HOSTNAME="$2" 10 11 export DIST="$3" 11 12 export MIRROR="$4" 12 export IMAGESIZE="$5" 13 export IMAGESIZE="$5" # in megabytes 13 14 export IP="$6" 14 15 … … 21 22 fi 22 23 23 export TARGET=/dev/mapper/xenvg- d_$(echo "$HOSTNAME" | sed -e 's/-/--/g')_hda24 export TARGET=/dev/mapper/xenvg-$(echo "$LVNAME" | sed -e 's/-/--/g')_hda 24 25 25 26 /usr/sbin/sipb-xen-create-image
Note: See TracChangeset
for help on using the changeset viewer.