1
0
mirror of synced 2026-01-19 01:07:28 +00:00

2006-06-09 09:39:11 by steve

More prototyping.
This commit is contained in:
steve 2006-06-09 09:39:11 +00:00
parent bf0704dc71
commit e9c052b976
2 changed files with 69 additions and 1 deletions

View File

@ -4,4 +4,30 @@
# Customize an installed copy of Linux by running hooks, etc.
#
use strict;
use strict;
#
# Parse arguments.
#
# We'll need at least:
#
# --installation = /tmp/3980fdf890
# --distro= { sid sarge etch centos4 gentoo .. etc }
#
#
#
# Check arguments:
#
# Distro hook directory must exist.
# if not abort.
#
#
# Run each relevent hook script.
#
#
# Exit cleanly
#

View File

@ -10,3 +10,45 @@
#
use strict;
#
# Parse our arguments.
#
#
# Check arguments.
#
#
# Work out how to install:
#
if ( $CONFIG{'debootstrap'} )
{
}
elsif ( $CONFIG{'rpmstrap'} )
{
}
elsif ( $CONFIG{'copy-from'} )
{
}
elsif ( $CONFIG{'untar'} )
{
}
else
{
#
# error
#
# return a code so that xen-create-image can abort.
}
#
# Finished
#
#
# Return 0 so that xen-create-image knows we succeeded.
#