@faboulous said in 20.04 autoinstall:
If someone manage to do so, it would be interesting to check what is_casper_path and matches_uuid does and return.
I don’t have a setup to dive in this right now and so I just started looking at the code. But maybe that’s of any help to you too.
Looking at the definition of is_caspar_path I get the impression that there is no possible way for this to return 0 (true in bash logic) to actually proceed to the next check.
Edit: Ok, forget what I said here. This is using bash globbing to expand filenames when a file exists matching the glob used.
Anyhow, I figured out why it would not return successful from the do_nfsmount() call. It checks UUIDs that are stored within the ISO in path .../.disk/casper-uuid*. Now when we prepare things and copy contents from the ISO we are missing that hidden folder (starting with a dot)! To fix that run the following command on your FOG server with the ISO mounted in /mnt/loop:
cp -R /mnt/loop/.disk /images/os/mint/20
I’m able to PXE boot into the Mint20 XFCE Live system with that fix on a VirtualBox VM (hosted on Debian 10) with only 768 MB of RAM set for the VM.
@george1421 We might think about switching to rsync -a /mnt/loop/ /images/os/... in your great tutorials on PXE booting installers to prevent that from happening. What do you think?
@londonfog I just tried Ubuntu Server 20.04 as well and it is working fine too - even using kernel and initrd from the ISO and not download the netboot ones! The important part is that you need to copy the .disk folder over as mentioned above.