SELECT imageID FROM images ORDER BY imageID LIMIT 1;
Can I just say thank you for this.
I have a very strange one, the idea is that after I deploy the image I want to clear the hosts in the database so if I am using a USB-Ethernet adapter I do not have to log on and clear the previous hosts.
So I currently use the IPXE USB method : https://forums.fogproject.org/topic/7727/building-usb-booting-fos-image
I have the script in the /var/www/fog/service/ folder … deletehosts.sh.
Now the script works from the server but I cannot for the life of me work out how to trigger the script from the fog.imgcomplete file on the USB.
Am I being stupid in trying technics such as string to use the following in the script?
I even tried Curl -s but I cannot seem to get it right . What would the correct syntax be.
I have used the following tutorial below to create a bootable USB disk, which works well but it uses the ipxe.efi file. I want to try add / replace that file or create a new menu entry for HP laptops and use snponly.efi / snp.efi but I cannot seem to make it work.
snponly.efi works if I put it into the bootfilename .
Here is the link to the tutorial I was using [https://forums.fogproject.org/topic/7727/building-usb-booting-fos-image/21?page=2]
I am looking for a way once the host has been registered and the image has been deployed to automatically delete the host on completion.
The reason for this is we use a USB to ethernet dongle which keeps saying the device has been registered before.
We also do not need to keep a record of the deployment hence a simple reset after deployment.
I know this has been covered multiple times, but I have tried various methods, from the API post-deployment to remove the host to the I.M.I option or the I.M.C option. I cannot seem to get it right.
So the problem is I have one adapter and I am trying to avoid the constant deleting the host to re-register a new host with the adapter. Is there not a way that I can automatically delete the host after deployment?
@george1421 Just thinking out of the box here, and I understand I might be barking up the wrong tree, but could something like this work ?
Would it then be possible to install this in fog and use this a function ?
As from there I should be able to pull the Windows version out from the registry, in theory.
As I have said before I am still learning .
@Sebastian-Roth You would be correct in the approach . Its an image once then forget. I am not using any tool to extract just a command which assigns the value to a variable and prints it out.
I then manually input the product key into a third party tool.
Do you know of any tools that could do the trick ?
Yes I do a full registration of the host then deploy .