Page 1 of 1

Fetching theme while booting with chainloaded gPXE

Posted: Fri Aug 28, 2009 6:37 am
by jangi
While playing around with gPXE I've run into some odd behaviour.

The theme sfs file refused to mount unless I put the themes/ folder in the confro directory. I figured out this was because the MM_ROOTFS_IMAGE was blank, so mm skipped trying to mount it from the rootfs folder. I added the initrd option to my kernel line which fixed the problem, but I didn't think specifying initrd on the boot line was necessary when using gPXE, especially for this reason.

Also, even though the last DHCP boot filename was via http, mm still references the original tftp boot url used to chainload gPXE. Specifying MM_MINIMYTH_BOOT_URL on the boot line fixes it, but I wasn't sure if this behaviour is expected or I'm doing something wrong.

Re: Fetching theme while booting with chainloaded gPXE

Posted: Fri Aug 28, 2009 4:28 pm
by Pablo
jangi wrote:While playing around with gPXE I've run into some odd behaviour.

The theme sfs file refused to mount unless I put the themes/ folder in the confro directory. I figured out this was because the MM_ROOTFS_IMAGE was blank, so mm skipped trying to mount it from the rootfs folder. I added the initrd option to my kernel line which fixed the problem, but I didn't think specifying initrd on the boot line was necessary when using gPXE, especially for this reason.

Also, even though the last DHCP boot filename was via http, mm still references the original tftp boot url used to chainload gPXE. Specifying MM_MINIMYTH_BOOT_URL on the boot line fixes it, but I wasn't sure if this behaviour is expected or I'm doing something wrong.
Yes it is annoying. Unfortunately, there is no foolproof way to determine the location of the root file system (and therefore the themes directory) on the server.

First, MiniMyth guesses the location of the root file system (and therefore the themes directory) on the server using the initrd variable. If there is no initrd variable, then MiniMyth guesses that the location is minimyth-{version}, because that is the directory found in the installation instructions and that is the directory using when it is installed by the build system. I will add this to the documentation.