Changeset 938 for trunk/packages/sipb-xen-autoinstaller/common
- Timestamp:
- Sep 28, 2008, 8:16:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-autoinstaller/common/usr/sbin/sipb-xen-create-image
r937 r938 3 3 # "arguments" come in environment: 4 4 # TARGET a device filename 5 # IMAGESIZE the desired filesystem size in megabytes (rest will be swap)5 # FSSIZE the desired filesystem size in megabytes (rest will be swap) 6 6 # ARCH, DIST, MIRROR 7 7 # HOSTNAME, IP … … 9 9 set -e 10 10 11 echo ,"${ IMAGESIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"11 echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET" 12 12 13 13 kpartx -a "$TARGET" # should be no-op in guest … … 17 17 --arch "$ARCH" --dist "$DIST" --mirror "$MIRROR" --cache=yes 18 18 19 kpartx -d $VOLUME19 kpartx -d "$TARGET" 20 20 21 21 exit 0
Note: See TracChangeset
for help on using the changeset viewer.