1
0
mirror of synced 2026-04-26 20:36:26 +00:00

2007-07-07 23:48:08 by steve

INITIAL COMMIT:  Support for arbitary partitioning systems.
  Patch from Sascha Kettler.
This commit is contained in:
steve
2007-07-07 23:49:02 +00:00
parent 75151abf35
commit eafc7427c2
23 changed files with 997 additions and 720 deletions

View File

@@ -21,15 +21,20 @@ memory = '{$memory}'
#
# Disk device(s).
#
root = '/dev/{$device}1 ro'
{ if ( $noswap )
{
for ( my $i = 0; $i <= $#PARTITIONS; $i++ )
{
$OUT .= "disk = [ '$image_vbd,$device" . "1,w' ]";
if ( $PARTITIONS[$i]{'mountpoint'} eq '/' )
{
$OUT .= "root = '/dev/$device" . ($i + 1) . " ro'\n";
}
}
else
$OUT .= "disk = [\n";
for ( my $i = 0; $i <= $#PARTITIONS; $i++ )
{
$OUT .= "disk = [ '$image_vbd,$device" . "1,w', '$swap_vbd,$device" . "2,w' ]";
$OUT .= " '$PARTITIONS[$i]{'imagetype'}$PARTITIONS[$i]{'image'},$device" . ( $i + 1 ) .",w',\n";
}
$OUT .= " ]\n";
}
#
@@ -81,4 +86,4 @@ on_crash = 'restart'
{
$OUT .= "xen_shell = '$admins'\n";
}
}
}