Re: What is renaming my PXE files?
For the list archives: I fixed it by creating a file named /srv/fai/config/hooks/chboot.UBUNTU with the following contents: #! /bin/bash skiptask chboot exit 0 # EOF On 08/05/2015 02:40 AM, Thomas Lange wrote: On Wed, 5 Aug 2015 09:34:44 +0200, Denny Bortfeldt de...@bortfeldt.net said: You don't need to edit the source code. You can create a hook for this task and at the end skip the task so that the normal subroutine won't execute anymore. Yes, that's right. If you just want to disable a task, you can use the function skiptask in a hook. Have a look at examples/simple/hooks/repository.CENTOS for an example. -- John Heim, jh...@math.wisc.edu, skype:john.g.heim
Re: What is renaming my PXE files?
On Wed, 12 Aug 2015 08:57:26 -0500, John G Heim jh...@math.wisc.edu said: For the list archives: I fixed it by creating a file named /srv/fai/config/hooks/chboot.UBUNTU with the following contents: Thanks for the feedback. Many greetings from the DebConf in Heidelberg -- regards Thomas
Re: What is renaming my PXE files?
You don't need to edit the source code. You can create a hook for this task and at the end skip the task so that the normal subroutine won't execute anymore. 2015-08-05 0:01 GMT+02:00 John G Heim jh...@math.wisc.edu: On 07/24/2015 05:18 PM, Thomas Lange wrote: On Fri, 24 Jul 2015 11:05:33 -0500, John G Heim jh...@math.wisc.edu said: After my FAI install finishes, the PXE boot config file gets renamed to something.disable. I am guessing fai does that somehow. Can I disable that? task chboot is logging into the install server and calls fai-chboot which disables the pxe config. You may redefine the subroutine task_chboot, or undefine LOGUSER or set $FAI_LOGPROTO to none. But this will also disable saving the log files to your install server. When you say redefine the subroutine task_chboot, I take it you mean edit the fai source code, right? Or can you redefine a task subroutine some other way? I see in the documentation that tasks are defined in /usr/lib/fai/subroutines. I think I can edit that to fix my problem. But whatever changes I make will be wiped out if I rebuild the nfsroot, right?
Re: What is renaming my PXE files?
On Tue, 4 Aug 2015 17:01:25 -0500, John G Heim jh...@math.wisc.edu said: When you say redefine the subroutine task_chboot, I take it you mean edit the fai source code, right? Or can you redefine a task subroutine some other way? You do not need to edit the source code. You can create a file in your config space in hooks/subroutines which will be sourced by FAI. In this file you can redefine most FAI functions, but not those that are needed before the config space is available. -- regards Thomas
Re: What is renaming my PXE files?
On Wed, 5 Aug 2015 09:34:44 +0200, Denny Bortfeldt de...@bortfeldt.net said: You don't need to edit the source code. You can create a hook for this task and at the end skip the task so that the normal subroutine won't execute anymore. Yes, that's right. If you just want to disable a task, you can use the function skiptask in a hook. Have a look at examples/simple/hooks/repository.CENTOS for an example. -- regards Thomas
Re: What is renaming my PXE files?
On 07/24/2015 05:18 PM, Thomas Lange wrote: On Fri, 24 Jul 2015 11:05:33 -0500, John G Heim jh...@math.wisc.edu said: After my FAI install finishes, the PXE boot config file gets renamed to something.disable. I am guessing fai does that somehow. Can I disable that? task chboot is logging into the install server and calls fai-chboot which disables the pxe config. You may redefine the subroutine task_chboot, or undefine LOGUSER or set $FAI_LOGPROTO to none. But this will also disable saving the log files to your install server. When you say redefine the subroutine task_chboot, I take it you mean edit the fai source code, right? Or can you redefine a task subroutine some other way? I see in the documentation that tasks are defined in /usr/lib/fai/subroutines. I think I can edit that to fix my problem. But whatever changes I make will be wiped out if I rebuild the nfsroot, right?