[Fai-commit] r3526 - in people/mugwump/vserver: . examples/simple/hooks
Sam Vilain
sam at vilain.net
Mon Jun 19 10:13:32 CEST 2006
fai-commit at lists.alioth.debian.org wrote:
> ===================================================================
> --- people/mugwump/vserver/examples/simple/hooks/subroutines 2006-06-19 07:51:32 UTC (rev 3525)
> +++ people/mugwump/vserver/examples/simple/hooks/subroutines 2006-06-19 07:52:40 UTC (rev 3526)
> @@ -68,4 +68,16 @@
> task vschild_updatebase
> task instsoft
> task configure
> + task savelog
> }
> +
> +task_savelog() {
> +
> + [ -d $target/var/log/fai ] || mkdir -p $target/var/log/fai
> + [ -d $target/var/log/fai ] && fai-savelog -l
> + [ -f $LOGDIR/FAI_CLASSES ] && cp -p $LOGDIR/FAI_CLASSES $target/var/log/fai
> + [ -f $LOGDIR/variables.sh ] && cp -p $LOGDIR/variables.sh $target/var/log/fai
> + [ "x$diskvar" != "x" -a "$diskvar" != "/var/log/fai/disk_var.sh" -a -f "$diskvar" ] && cp -p $diskvar $target/var/log/fai
> + fai-savelog -r
> +}
> +
>
Yes, I realise this is probably in the wrong place - was starting with
Brian Showalter's examples and that's how he did it - and I'm really
only just beginning to get the big picture of how FAI fits together.
The changes on this branch would be good to merge, as most of them
should be neutral to regular use. It's a shame that Subversion is so
awful at revising patchsets, otherwise I'd just be reshaping the patches
for inclusion rather than letting the series just get longer and
longer. ok obligitary anti-svn rant concludes ;-).
Sam.
More information about the linux-fai-devel
mailing list