Ignore:
Timestamp:
Sep 28, 2008, 8:16:05 PM (16 years ago)
Author:
price
Message:

sipb-xen-install deals with lvcreate, and some tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-autoinstaller/common/usr/sbin/sipb-xen-create-image

    r937 r938  
    33# "arguments" come in environment:
    44#  TARGET a device filename
    5 IMAGESIZE the desired filesystem size in megabytes (rest will be swap)
     5FSSIZE the desired filesystem size in megabytes (rest will be swap)
    66#  ARCH, DIST, MIRROR
    77#  HOSTNAME, IP
     
    99set -e
    1010
    11 echo ,"${IMAGESIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
     11echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
    1212
    1313kpartx -a "$TARGET"    # should be no-op in guest
     
    1717 --arch "$ARCH" --dist "$DIST" --mirror "$MIRROR" --cache=yes
    1818
    19 kpartx -d $VOLUME
     19kpartx -d "$TARGET"
    2020
    2121exit 0
Note: See TracChangeset for help on using the changeset viewer.