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.

Reply via email to