From e9c052b976dee5e64560235bb1a754695676c032 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 9 Jun 2006 09:39:11 +0000 Subject: [PATCH] 2006-06-09 09:39:11 by steve More prototyping. --- bin/xt-customize-image | 28 +++++++++++++++++++++++++++- bin/xt-install-image | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/bin/xt-customize-image b/bin/xt-customize-image index b11e0d8..2509782 100755 --- a/bin/xt-customize-image +++ b/bin/xt-customize-image @@ -4,4 +4,30 @@ # Customize an installed copy of Linux by running hooks, etc. # -use strict; \ No newline at end of file +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 +# diff --git a/bin/xt-install-image b/bin/xt-install-image index deba948..ec8be72 100755 --- a/bin/xt-install-image +++ b/bin/xt-install-image @@ -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. +#