[lml] push by schl...@schapiro.org - new config option to decide if missing host dirs constitute an error o... on 2012-03-20 10:30 GMT

0 views
Skip to first unread message

l...@googlecode.com

unread,
Mar 20, 2012, 6:31:01 AM3/20/12
to lml-...@googlegroups.com
Revision: c4a443803008
Author: Schlomo Schapiro <l...@schlomo.schapiro.org>
Date: Tue Mar 20 03:30:29 2012
Log: new config option to decide if missing host dirs constitute an
error or not
http://code.google.com/p/lml/source/detail?r=c4a443803008

Modified:
/etc/lml.conf
/web/www/boot/lml/pxelinux.pl

=======================================
--- /etc/lml.conf Tue Jul 12 03:21:08 2011
+++ /etc/lml.conf Tue Mar 20 03:30:29 2012
@@ -77,6 +77,9 @@
renamehostdirs=1
# create new host dirs for new hostnames
createhostdirs=1
+# is it OK if the hostdirs are missing?
+failonmissinghostdir=0
+

[modifyvm]
# modify the VM so that it can boot only via PXE
=======================================
--- /web/www/boot/lml/pxelinux.pl Tue Jan 24 09:16:21 2012
+++ /web/www/boot/lml/pxelinux.pl Tue Mar 20 03:30:29 2012
@@ -209,8 +209,8 @@

}
} else {
- # if we should not create the hostdirs, at least warn about missing
host dir
- push(@error,"SVN hostdir '$newhostdir' missing");
+ # if we should not create the hostdirs, at least warn about missing
host dir or let it pass
+ push(@error,"SVN hostdir '$newhostdir' missing") if
(exists($CONFIG{SUBVERSION}{FAILONMISSINGHOSTDIR}) and
$CONFIG{SUBVERSION}{FAILONMISSINGHOSTDIR});
}
} # hostdirs is set

Reply all
Reply to author
Forward
0 new messages