[EMAIL PROTECTED] wrote:
> On Tue, Apr 04, 2006 at 09:18:38PM -0500, [EMAIL PROTECTED] wrote:
> 
>>Hi all.  New here, likely to ask a dumb question or two... for example:
>>
> 
> <snip>
> 
>>From the PC Engines (minimal) online docs, I found a suggestion that
>>adding "reboot=bios" to the kernel command line might fix this, but no
>>dice, and now I'm stumped.
> 
> 
> Well it turns out that I might not be as stumped as I thought, but I did
> ask a dumb question.
> 
> In order to add "reboot=bios" to the kernel command line, I tried
> editing the "isolinux.cfg" file under my gnap-extensions directory, like
> so:
> 
> [...]
> append initrd=gentoo.igz root=/dev/ram0 init=/linuxrc acpi=off 
> looptype=squashfs loop=/livecd.squashfs cdroot
> 
> Remastered, wrote the results to my CF card (I thought), and rebooted.
> 
> Well, the package extension I added (elvis) shows up on my target
> machine, but /proc/cmdline doesn't include "reboot=bios".  In fact it
> looks quite a bit different from the append= line above:
> 
> initrd=gentoo.igz root=/dev/ram0 init=/linuxrc acpi=off looptype=squashfs 
> loop=/livecd.sfs cdroot=/dev/hda1 docache console=ttyS0,38400n81 
> BOOT_IMAGE=gentoo
> 
> So clearly I've misunderstood something somewhere, and the question I
> should have asked is: How do I find and edit the grub.conf that will
> be installed on a GNAP system?

When used in disk mode, GNAP uses the syslinux.cfg file (in
specs/isolinux) to pass boot options. The core file includes that file.
Then the gnap_overlay script takes that file from the core, rewrites it
with some options, and then syslinuxes the disk.

Look for :

sed -i "s:cdroot:cdroot=/dev/${TARGETROOT} ${CACHE}${SERIAL}:"
"${TEMPMOUNTDIR}/syslinux.cfg"

in gnap_overlay

So you can either add your parameter to the syslinux.cfg file in the
specs and rebuild your core, hack the syslinux.cfg file from the core
tarfile directly, or hack the gnap_overlay script to do your bidding.

Something like

sed -i "s:cdroot:reboot=bios cdroot=/dev/${TARGETROOT}
${CACHE}${SERIAL}:" "${TEMPMOUNTDIR}/syslinux.cfg"

should do the trick.
Hope this helps.

-- 
Koon
-- 
[email protected] mailing list

Reply via email to