2006-06-09 09:39:11 by steve
More prototyping.
This commit is contained in:
parent
bf0704dc71
commit
e9c052b976
@ -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
|
||||
#
|
||||
|
||||
@ -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.
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user