Bug#305383: marked as done (grub: kopt arguments not properly parsed)
Debian Bug Tracking System
owner@bugs.debian.org
Tue, 19 Apr 2005 17:03:10 -0700
Your message dated Wed, 20 Apr 2005 09:47:02 +1000
with message-id <20050419234702.GB27492@staff.pnc.com.au>
and subject line Bug#305383: grub: kopt arguments not properly parsed
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 19 Apr 2005 19:21:13 +0000
>From esproul@ntelos.net Tue Apr 19 12:21:13 2005
Return-path: <esproul@ntelos.net>
Received: from mailrtr01.ntelos.net [216.12.0.101]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DNyHZ-0006E3-00; Tue, 19 Apr 2005 12:21:13 -0700
Received: from thunderbolt.oss.ntelos.net (thunderbolt.oss.ntelos.net [216.12.8.195])
by mailrtr01.ntelos.net (8.11.7/8.11.7) with ESMTP id j3JJLCL28117;
Tue, 19 Apr 2005 15:21:12 -0400
Message-Id: <200504191921.j3JJLCL28117@mailrtr01.ntelos.net>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Eric Sproul <esproul@ntelos.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grub: kopt arguments not properly parsed
X-Mailer: reportbug 3.9
Date: Tue, 19 Apr 2005 15:21:10 -0400
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: grub
Version: 0.95+cvs20040624-16
Severity: critical
Justification: breaks the whole system
After upgrading grub, update-grub generated an unusable menu.lst file.
My kopt= argument was not parsed, so the root parameter was not passed
to any of the automagic kernels. My system boots off the MBR of an IDE
drive (hd0 to grub), but the root filesystem is on a SCSI drive (hd1).
My kopt lines were:
# kopt=root=/dev/sda1 ro
# kopt_2_4=hdc=ide-scsi
It seemed that update-grub was skipping the kopt= line and only applying
kopt_2_4 options. Only after I copied the root parameter into the
kopt_2_4 line did the correct options get passed, e.g.
# kopt=root=/dev/sda1 ro
# kopt_2_4=root=/dev/sda1 ro hdc=ide-scsi
I set my options this way because I was going back and forth between 2.4
and 2.6 kernels. I am currently only using a 2.4 kernel, but it was my
understanding that kopt= arguments were passed to all kernels, with
kopt_x_x= going only to kernels with matching major/minor versions.
Fortunately I had a separate (non-automagic) kernel stanza that still
had the proper root parameter, so I was able to fix the issue, but a
system with only automagic kernel stanzas would have been stuck.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages grub depends on:
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand
-- no debconf information
---------------------------------------
Received: (at 305383-done) by bugs.debian.org; 19 Apr 2005 23:47:13 +0000
>From jason@debian.org Tue Apr 19 16:47:13 2005
Return-path: <jason@debian.org>
Received: from mx1.staff.pnc.com.au [203.91.225.6]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DO2Qy-0000zm-00; Tue, 19 Apr 2005 16:47:12 -0700
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx1.staff.pnc.com.au (Postfix) with ESMTP id 8600F1EF1A;
Wed, 20 Apr 2005 09:47:10 +1000 (EST)
Received: from mx1.staff.pnc.com.au ([127.0.0.1])
by localhost (mackerel [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 14240-01; Wed, 20 Apr 2005 09:47:03 +1000 (EST)
Received: from pc-jason (pc-jason.staff.pnc.com.au [10.17.5.123])
by mx1.staff.pnc.com.au (Postfix) with SMTP id EEC841EF12;
Wed, 20 Apr 2005 09:47:02 +1000 (EST)
Received: by pc-jason (sSMTP sendmail emulation); Wed, 20 Apr 2005 09:47:02 +1000
Date: Wed, 20 Apr 2005 09:47:02 +1000
From: Jason Thomas <jason@debian.org>
To: Eric Sproul <esproul@ntelos.net>, 305383-done@bugs.debian.org
Subject: Re: Bug#305383: grub: kopt arguments not properly parsed
Message-ID: <20050419234702.GB27492@staff.pnc.com.au>
References: <200504191921.j3JJLCL28117@mailrtr01.ntelos.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200504191921.j3JJLCL28117@mailrtr01.ntelos.net>
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at staff.pnc.com.au
Delivered-To: 305383-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
This is how it is suppose to work.
kopt_x_x replaces kopt.
Changing it would break everyone elses setup.
On Tue, Apr 19, 2005 at 03:21:10PM -0400, Eric Sproul wrote:
> Package: grub
> Version: 0.95+cvs20040624-16
> Severity: critical
> Justification: breaks the whole system
>
> After upgrading grub, update-grub generated an unusable menu.lst file.
> My kopt= argument was not parsed, so the root parameter was not passed
> to any of the automagic kernels. My system boots off the MBR of an IDE
> drive (hd0 to grub), but the root filesystem is on a SCSI drive (hd1).
>
> My kopt lines were:
> # kopt=root=/dev/sda1 ro
> # kopt_2_4=hdc=ide-scsi
>
> It seemed that update-grub was skipping the kopt= line and only applying
> kopt_2_4 options. Only after I copied the root parameter into the
> kopt_2_4 line did the correct options get passed, e.g.
>
> # kopt=root=/dev/sda1 ro
> # kopt_2_4=root=/dev/sda1 ro hdc=ide-scsi
>
> I set my options this way because I was going back and forth between 2.4
> and 2.6 kernels. I am currently only using a 2.4 kernel, but it was my
> understanding that kopt= arguments were passed to all kernels, with
> kopt_x_x= going only to kernels with matching major/minor versions.
>
> Fortunately I had a separate (non-automagic) kernel stanza that still
> had the proper root parameter, so I was able to fix the issue, but a
> system with only automagic kernel stanzas would have been stuck.
>
> -- System Information:
> Debian Release: 3.1
> APT prefers unstable
> APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Kernel: Linux 2.4.27-2-686-smp
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
>
> Versions of packages grub depends on:
> ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
> ii libncurses5 5.4-4 Shared libraries for terminal hand
>
> -- no debconf information
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
--
Jason
"I hope you learn speaking English proper I hope speak I me you."
-- Branden Robinson, 2001