Fetching theme while booting with chainloaded gPXE

Help with booting MiniMyth

Moderator: Pablo

Post Reply
jangi
Contributor
Posts: 137
Joined: Mon Nov 13, 2006 10:50 pm

Fetching theme while booting with chainloaded gPXE

Post by jangi » Fri Aug 28, 2009 6:37 am

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.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Fetching theme while booting with chainloaded gPXE

Post by Pablo » Fri Aug 28, 2009 4:28 pm

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.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply