9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Duplicate entries in fresh plan9.ini
@ 2007-12-27 20:11 Sander van Dijk
  2008-01-07 10:44 ` [9fans] " Sander van Dijk
  0 siblings, 1 reply; 9+ messages in thread
From: Sander van Dijk @ 2007-12-27 20:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,

As has been noticed in the thread "Qemu question" (started on Nov 9,
2007), installing from recent cd images gives duplicate *nobiosload=1
and *noahciload=1 entries, causing a rather useless (because the lines
are identical) menu at boot time.

I've been looking for the cause of these duplicate entries, and they
appear to have been introduced together with the third boot option on
the cd, "Boot Plan 9 from this CD and debug 9load".
I've been able to trace the cause of the duplicate entries back to the
following line in /sys/lib/dist/pc/inst/bootsetup on the cd:

grep -v '(^\[)|menuitem|adisk|bootfile|bootdisk|bootargs|nobootprompt|mouseport|vgasize|monitor|cdboot'
/tmp/plan9.orig

This line causes the following to be added to the new plan9.ini:

*nomp=1
*nodumpstack=1
partition=new
dmamode=ask

*nobiosload=1
*noahciload=1

*nobiosload=1
*noahciload=1

*debugload=1

The reason for the duplicate entries here are obvious given the
contents of /tmp/plan9.orig.

Now, there are a couple of things I'm wondering about:

Are the *nobiosload=1 and *noahciload=1 entries still necessary? Is
the third boot option on the cd still necessary? If not, removing them
would fix the duplicate entry problem.

If these entries and/or the third boot option are still necessary, I
guess the mentioned line in /sys/lib/dist/pc/inst/bootsetup should be
changed so that it doesn't cause duplicate lines anymore?
If the entries and the third boot option are meant to be temporary, a
quick and dirty change like the following line (which add everything
that the current line does, without duplicate entries) might suffice:

grep -v '(^\[)|menuitem|adisk|bootfile|bootdisk|bootargs|nobootprompt|mouseport|vgasize|monitor|cdboot'
/tmp/plan9.orig | sort | uniq

If the entries and the third boot option are stayers, I guess
something more sophisticated would be nicer...

Greetings, Sander.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-15  9:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-27 20:11 [9fans] Duplicate entries in fresh plan9.ini Sander van Dijk
2008-01-07 10:44 ` [9fans] " Sander van Dijk
2008-01-07 22:18   ` erik quanstrom
2008-01-08  2:57     ` Pietro Gagliardi
2008-01-08  3:07       ` erik quanstrom
2008-01-08 19:25     ` Sander van Dijk
2008-01-09 16:07   ` Russ Cox
2008-01-09 19:50     ` Sander van Dijk
2008-01-15  9:08       ` Patrick Kristiansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).