On 2/28/2014 22:49, n43w79 wrote:
Hi, I read the man page and I had tried the following first two commands before posting: # fai-chboot -u nfs://fai0.qc.ca/srv/fai/config fai0.qc.ca # fai-chboot -u nfs://fai0.qc.ca/srv/fai/config fai0 # fai-chboot -u nfs://fai0.qc.ca/srv/fai/config default # fai-chboot -u nfs://fai0.qc.ca/srv/fai/config demohost All four above getting the same message "No host specified."? :(
Hello again, It appears that the command: # /usr/sbin/fai-chboot -v -u nfs://host/srv/fai/config host is broken!? My solution is the following bash-script-one-liner: #!/bin/bash Dir=${Dir:=/srv/fai/nfsroot/etc/fai} && \ $(! grep -q '^FAI_CONFIG_SRC=' ${Dir}/fai.conf) && \ cd ${Dir} && sed -i "/^#FAI_CONFIG_SRC/ a\ FAI_CONFIG_SRC=nfs://$(hostname -f)/srv/fai/config " ./fai.conf || \ ( [[ ! $? ]] && echo "Error: Exec ${FUNCNAME}....") Note: Broken into multiple lines for readability, if any? :) Cheers!