1 |
On Wed, Apr 05, 2006 at 06:28:50PM +0200, Thierry Carrez wrote: |
2 |
> mjinks@××××××××.edu wrote: |
3 |
> > |
4 |
> > Well, the package extension I added (elvis) shows up on my target |
5 |
> > machine, but /proc/cmdline doesn't include "reboot=bios". In fact it |
6 |
> > looks quite a bit different from the append= line above: |
7 |
> > |
8 |
> > 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 |
9 |
> > |
10 |
> > So clearly I've misunderstood something somewhere, and the question I |
11 |
> > should have asked is: How do I find and edit the grub.conf that will |
12 |
> > be installed on a GNAP system? |
13 |
> |
14 |
> When used in disk mode, GNAP uses the syslinux.cfg file (in |
15 |
> specs/isolinux) to pass boot options. The core file includes that file. |
16 |
> Then the gnap_overlay script takes that file from the core, rewrites it |
17 |
> with some options, and then syslinuxes the disk. |
18 |
> |
19 |
> Look for : |
20 |
> |
21 |
> sed -i "s:cdroot:cdroot=/dev/${TARGETROOT} ${CACHE}${SERIAL}:" |
22 |
> "${TEMPMOUNTDIR}/syslinux.cfg" |
23 |
> |
24 |
> in gnap_overlay |
25 |
> |
26 |
> So you can either add your parameter to the syslinux.cfg file in the |
27 |
> specs and rebuild your core, hack the syslinux.cfg file from the core |
28 |
> tarfile directly, or hack the gnap_overlay script to do your bidding. |
29 |
|
30 |
Hm. |
31 |
|
32 |
Well, I edited isolinux/syslinux.cfg under my specs directory, ran |
33 |
gnap_remaster, and took a look inside the resulting tarball. The |
34 |
syslinux.cfg there still didn't contain my "reboot=bios". So apparently |
35 |
I'm still doing something wrong. |
36 |
|
37 |
Next I edited the syslinux.cfg from my tarball to add "reboot=bios", |
38 |
re-tarred, and ran gnap_overlay from that. Still no dice; |
39 |
/proc/cmdline on my system still doesn't include my "reboot" option. |
40 |
|
41 |
Then I made a modified copy of gnap_overlay per Thierry's suggestion, so |
42 |
that the sed command inserts my addition, but that seems like the wrong |
43 |
way to do it, as I (or whoever takes over this project once it goes |
44 |
production) will have to re-edit the script every time the package is |
45 |
updated. |
46 |
|
47 |
Now I have a different problem, but that rates a new thread... |
48 |
|
49 |
Thanks, |
50 |
-mrj |
51 |
|
52 |
-- |
53 |
Michael Jinks, somewhere in NSIT, part of the University of Chicago |
54 |
"If the future's not bright, it's colorful." -- Einsturzende Neubauten |
55 |
-- |
56 |
gentoo-embedded@g.o mailing list |