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. +#