There are a couple of placeâs youâd need to edit whether you choose to edit the init.gz, or edit the php file.
Editing the init.gz would work, but is more difficult as it requires unzipping, then mounting, editing, then unmounting, then rezipping all to check if your editâs worked. If you made a mistake, you have redo the same steps over again. Repeat until all is working as expected. All of these steps would also require rebooting the system to check that the changes work as otherwise theyâll have the previous iteration of the init.gz loaded.
Editing the service scripts is probably easier, as you donât have reboot the client to test, and theyâres no unzipping, mounting, etcâŠ
The easiest recommendation I could give for you to successfully do this is kind of two stepped.
First, manually create a false task entry in the database with something along the lines of:
[code]INSERT INTO fog.tasks (taskHostID,taskStateID) VALUES (â1999â,â1â);[/code]
Create a false Host entry using the fake ID youâve set in tasks:
[code]INSERT INTO fog.hosts (hostID,hostMAC) VALUES(â1999â,â00:00:00:00:00:00â);[/code]
Then edit the Post_Stage2, Post_Stage3 and Pre_Stage1 files to leave the tasking alone if the host ID equals 1999 (or whatever false host youâve given.
Then edit your default file to use the MAC Address 00:00:00:00:00:00 mac address.
Iâm not giving specific instructions on editing the Post_Stage2, Post_Stage3, and Pre_Stage1 files because I donât know what version of FOG youâre using, so I canât provide an direct assistance.
That all said, while this all looks like a lot to have to do, itâs ultimately much simpler than editiing the init.gz. You didnât want to have to create a task all the time, and with this you wouldnât have to, just forcibly create the one task, and use that task as the âcontrollerâ for those extra entries.