On Wed, Apr 05, 2006 at 06:28:50PM +0200, Thierry Carrez wrote:
> [EMAIL PROTECTED] wrote:
> > 
> > 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.

Hm.

Well, I edited isolinux/syslinux.cfg under my specs directory, ran
gnap_remaster, and took a look inside the resulting tarball.  The
syslinux.cfg there still didn't contain my "reboot=bios".  So apparently
I'm still doing something wrong.

Next I edited the syslinux.cfg from my tarball to add "reboot=bios",
re-tarred, and ran gnap_overlay from that.  Still no dice;
/proc/cmdline on my system still doesn't include my "reboot" option.

Then I made a modified copy of gnap_overlay per Thierry's suggestion, so
that the sed command inserts my addition, but that seems like the wrong
way to do it, as I (or whoever takes over this project once it goes
production) will have to re-edit the script every time the package is
updated.

Now I have a different problem, but that rates a new thread...

Thanks,
-mrj

-- 
Michael Jinks, somewhere in NSIT, part of the University of Chicago
"If the future's not bright, it's colorful." -- Einsturzende Neubauten
-- 
[email protected] mailing list

Reply via email to