Discussion:
pxe-nfs-loop-iso syntax in grub.cfg
rsb
2014-03-05 18:53:05 UTC
Permalink
How do you pass a pxe-nfs-loop-iso syntax in grub.cfg? I'm trying to boot
iso file (loopback) over pxe. I get far as the grub.cfg menu, but the entry
below aborts with "no loop disk". "grub-cli> ls" shows nothing (no pxe
listing).

insmod loopback
insmod gzio
insmod iso9660
menuentry 'Lubuntu 13.04' {
set root='pxe'
set isofile="path/file"
loopback loop (pxe)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
initrd (loop)/casper/initrd.lz }

I also think that above entry would be sending the file over tftp and not
nfs. An alternative menu entry for example that I came accross:
* linux (pxe)/gentoo32/mnt/isolinux/gentoo loop=/image.squashfs
root=/dev/ram0 init=/linuxrc looptype=squashfs
nfsroot=<IP>:/dist/gentoo32/mnt cdroot=1 real_root=/dev/nfs
Andrey Borzenkov
2014-03-13 05:57:06 UTC
Permalink
В Wed, 5 Mar 2014 20:53:05 +0200
Post by rsb
How do you pass a pxe-nfs-loop-iso syntax in grub.cfg?
For a start, grub does not support NFS.
Post by rsb
I'm trying to boot
iso file (loopback) over pxe. I get far as the grub.cfg menu, but the entry
below aborts with "no loop disk". "grub-cli> ls" shows nothing (no pxe
listing).
If I'm not mistaken, ls currently supports only disk devices.
Post by rsb
insmod loopback
insmod gzio
insmod iso9660
menuentry 'Lubuntu 13.04' {
set root='pxe'
set isofile="path/file"
loopback loop (pxe)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
initrd (loop)/casper/initrd.lz }
How do you boot grub? PXE is active only if you have actually booted
over network; if not, you cannot use network on BIOS systems (there are
simply no drivers).
Post by rsb
I also think that above entry would be sending the file over tftp and not
nfs.
That's correct.
Post by rsb
* linux (pxe)/gentoo32/mnt/isolinux/gentoo loop=/image.squashfs
root=/dev/ram0 init=/linuxrc looptype=squashfs
nfsroot=<IP>:/dist/gentoo32/mnt cdroot=1 real_root=/dev/nfs
Vladimir 'φ-coder/phcoder' Serbinenko
2014-03-13 12:28:03 UTC
Permalink
Post by Andrey Borzenkov
If I'm not mistaken, ls currently supports only disk devices.
tftp (protocol) simply doesn't provide any way to list files.
Andrey Borzenkov
2014-03-13 12:34:14 UTC
Permalink
В Thu, 13 Mar 2014 21:58:03 +0930
Post by Vladimir 'φ-coder/phcoder' Serbinenko
Post by Andrey Borzenkov
If I'm not mistaken, ls currently supports only disk devices.
tftp (protocol) simply doesn't provide any way to list files.
Yes, but I mean ls without arguments that lists devices.
r***@ttmail.com
2014-03-18 08:31:08 UTC
Permalink
Post by rsb
How do you pass a pxe-nfs-loop-iso syntax in grub.cfg?
For a start, grub does not support NFS.

Yes I see, my mistake. Does grub support transfers other than tftp?
HTTP, for example?

  > (grub) aborts with "no loop disk".How do you boot grub? PXE is
active only if you have actually booted over network;
Grub is booted over network. System starts, "boot from network" >
obtains IP from dhcpd > grub menu from server (laptop grub menu has
different entries than what server grub menu has)

Regards.

Loading...