From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 7 Jan 2008 11:44:31 +0100 From: "Sander van Dijk" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: [9fans] Re: Duplicate entries in fresh plan9.ini Topicbox-Message-UUID: 283914c2-ead3-11e9-9d60-3106f5b1d025 Hi all, Since no one has replied to this, I'm wondering if this was the right place to send it to. Is 9trouble more appropriate for this? Thanks, Sander. On Dec 27, 2007 9:11 PM, Sander van Dijk wrote: > 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. >