[Fai-commit] r6609 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Wed Jul 20 15:02:38 UTC 2011
Author: lange
Date: 2011-07-20 15:02:38 +0000 (Wed, 20 Jul 2011)
New Revision: 6609
Modified:
trunk/bin/fai-chboot
Log:
first, check if any hosts are specified
Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot 2011-07-20 14:46:13 UTC (rev 6608)
+++ trunk/bin/fai-chboot 2011-07-20 15:02:38 UTC (rev 6609)
@@ -6,7 +6,7 @@
# fai-chboot -- manage configuration for network boot
#
# This script is part of FAI (Fully Automatic Installation)
-# Copyright (C) 2003-2010 Thomas Lange, lange at informatik.uni-koeln.de
+# Copyright (C) 2003-2011 Thomas Lange, lange at informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
@@ -465,9 +465,10 @@
$opt_B and $opt_f="verbose,sshd,reboot";
$opt_f and $flags="FAI_FLAGS=$opt_f";
$opt_u and $flags.=" FAI_CONFIG_SRC=$opt_u"; # set -u as FAI_CONFIG_SRC
+
+die "No host specified.\n" unless @ARGV;
warn "Booting $kernelname\n" if $verbose;
warn " append $initrd $bootprot $opt_k\n $flags\n\n" if $verbose;
$opt_k && print "Kernel parameters: $opt_k\n";
-die "No host specified.\n" unless @ARGV;
foreach (@ARGV) { mkpxecfg($_,$kernelname,$rootfs,$initrd); }
More information about the Fai-commit
mailing list