My working starting point is a UEFI PXE diskless arrangement that works via NFS4 mount, but all the diskless clients effectively SHARE the same NFS mount point, so occationally one or the other steps on something during shutdown (mostly) or startup such that they are not reliable.
The grub entry in the tftp root directory has a menu option that looks like this:
Code: Select all
menuentry 'Diskless CentOS7' {
linuxefi export/uefi/vmlinuz ip=dhcp root=nfs4:192.168.1.10:/ExternalMounts/CentOs7ServerWithGUI rd.nfs.domain=mydisklessdomain.local rw selinux=0 console=tty0 console=ttyS0,115200n8
initrdefi export/uefi/disklessRamfs.img
}
Code: Select all
filename "/export/uefi/shim.efi";
I checked the modules to see that I wasnt hitting the problem I saw on viewtopic.php?t=46542 that matched what I'm seeing most often "been "FATAL: Don't know how to handle 'root=live ":
Code: Select all
[root@gp0 ~]# dracut --list-modules /export/uefi/LiveDisklessRamfs.img | grep livenet
livenet
[root@gp0 ~]# dracut --list-modules /export/uefi/LiveDisklessRamfs.img | grep squash
dmsquash-live
So following the best reference I think I've found so far (https://bugzilla.redhat.com/show_bug.cgi?id=1154670), I think the following SHOULD work in grub.cfg but ISN'T :
Code: Select all
linuxefi export/uefi/vmlinuz ip=dhcp root=tftp://192.168.1.10/ExternalMounts/CommonOSandApps/LiveOS/squashfs.img quiet selinux=0 console=tty0 console=ttyS0,115200n8
initrdefi export/uefi/LiveDisklessRamfs.img
Here I also regenerated the LiveDisklessRamfs.img as before, but I also pointed it at the previous content fstab using --tmpdir option that with the addition of a line for / as tmpfs:
none / tmpfs defaults 0 0
with this or the prior initrd image both fail.
If ANYONE has gotten this to work, what are the right parameters in grub, possible different boot loader (other than shim?), or possible steps I've missed?
Has anyone found decent documentation with examples on how to get a network boot in UEFI with the root=live: noted options to work. I've tried the above with tftp, http, etc. but nogo even though the file is tested downloadable from the URL via browser.
Sam C.