[Fai-commit] r6173 - in trunk: bin debian
Thomas Lange
lange at alioth.debian.org
Wed Nov 3 13:18:50 UTC 2010
Author: lange
Date: 2010-11-03 13:18:48 +0000 (Wed, 03 Nov 2010)
New Revision: 6173
Modified:
trunk/bin/fai
trunk/debian/control
Log:
use hostname= from the kernel command line (closes: #601750)
remove call of live config script
Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai 2010-10-31 08:32:20 UTC (rev 6172)
+++ trunk/bin/fai 2010-11-03 13:18:48 UTC (rev 6173)
@@ -258,15 +258,17 @@
export do_init_tasks=0
[ "$0" = "/etc/init.d/rcS" ] || [ X$UPSTART_JOB = Xfai ] && do_init_tasks=1
if [ $do_init_tasks -eq 1 ]; then
- hostname $HOSTNAME
- # live-config provides hostname handling through a separate script,
- # $HOSTNAME isn't available in environment any longer
- if [ -x /lib/live/config.sh ] ; then
- LIVE_CONFIGS=hostname /lib/live/config.sh
- HOSTNAME=$(hostname)
- fi
+ # if hostname was set on the kernel command line (mostly when booting from CD)
+ for word in $(cat /proc/cmdline) ; do
+ case $word in
+ hostname=*)
+ HOSTNAME=${word#*hostname=}
+ ;;
+ esac
+ done
+ hostname $HOSTNAME
export HOSTNAME
renewclass=1 # always renew class list when installing
Modified: trunk/debian/control
===================================================================
--- trunk/debian/control 2010-10-31 08:32:20 UTC (rev 6172)
+++ trunk/debian/control 2010-11-03 13:18:48 UTC (rev 6173)
@@ -73,7 +73,7 @@
Package: fai-nfsroot
Architecture: all
-Depends: fai-client, live-initramfs, fai-setup-storage
+Depends: fai-client, live-boot|live-initramfs, fai-setup-storage
Conflicts: fai, fai-kernels
Description: Fully Automatic Installation nfsroot package
FAI is a non-interactive system to install, customize and manage
More information about the Fai-commit
mailing list