Your message dated Wed, 01 Apr 2009 00:32:06 +0000
with message-id <[email protected]>
and subject line Bug#514837: fixed in grub2 1.96+20090401-1
has caused the Debian Bug report #514837,
regarding grub-pc fails to fully migrate kopt from /boot/grub/menu.lst
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
514837: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514837
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grub-pc
Version: 1.96+20080724-14
Tags: patch
While upgrading from grub (v1) to grub-pc (v2) the debconf script
(grub-pc.config) tries to migrate existing kopt arguments from
/boot/grub/menu.lst.
In my case kopt looked like this:
kopt=root=/dev/sda2 resume=/dev/sda1 acpi_sleep=s3_bios vga=0x0368 ro
The responsible code snippet from grub-pc.config
1 if [ "$RET" = "fillme" ] ; then
2 kopt=`sed -ne "s/^# kopt=//p" /boot/grub/menu.lst | tr -s " " "\n" |
3 grep -vx "\(ro\|root=[^ ]*\)"` || true
4 db_set grub-pc/linux_cmdline "${kopt}" || true
removes root= and ro options, so afterwards kopt contains
resume=/dev/sda1
acpi_sleep=s3_bios
vga=0x0368
(Take care there are really newlines in, since this was requested
through the preceding tr operation from line 2.)
In line 4 the contents of $kopt are committed to debconf which silently
fails.
Since the quotes around ${kopt} expand the string as it is (newlines are
keept), db_set gets an argument with newlines resulting in
grub-pc/linux_cmdline only containing the first parameter
(resume=/dev/sda1). The remaining kernel options are lost.
So please remove the quotes from line 4 to profit from bash's word
splitting, which works find in this case. The $kopt var will be split at
all characters from IFS and concatenated with spaces.
Best regards from Dresden/Germany!
Marcus Obst
diff -r a47bcf8fd823 grub-pc.config
--- a/grub-pc.config Wed Feb 11 11:20:48 2009 +0100
+++ b/grub-pc.config Wed Feb 11 11:21:38 2009 +0100
@@ -9,7 +9,7 @@
# this check ensures we only do this once
if [ "$RET" = "fillme" ] ; then
kopt=`sed -ne "s/^# kopt=//p" /boot/grub/menu.lst | tr -s " " "\n" | grep
-vx "\(ro\|root=[^ ]*\)"` || true
- db_set grub-pc/linux_cmdline "${kopt}" || true
+ db_set grub-pc/linux_cmdline ${kopt} || true
if [ "${kopt}" == "" ] ; then
# something smells bad. give user a chance to correct it.
priority=high
pgpMForKOzzQy.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: grub2
Source-Version: 1.96+20090401-1
We believe that the bug you reported is fixed in the latest version of
grub2, which is due to be installed in the Debian FTP archive:
grub-common_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub-common_1.96+20090401-1_amd64.deb
grub-coreboot_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub-coreboot_1.96+20090401-1_amd64.deb
grub-efi_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub-efi_1.96+20090401-1_amd64.deb
grub-ieee1275_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub-ieee1275_1.96+20090401-1_amd64.deb
grub-linuxbios_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub-linuxbios_1.96+20090401-1_amd64.deb
grub-pc_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub-pc_1.96+20090401-1_amd64.deb
grub-rescue-pc_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub-rescue-pc_1.96+20090401-1_amd64.deb
grub2_1.96+20090401-1.diff.gz
to pool/main/g/grub2/grub2_1.96+20090401-1.diff.gz
grub2_1.96+20090401-1.dsc
to pool/main/g/grub2/grub2_1.96+20090401-1.dsc
grub2_1.96+20090401-1_amd64.deb
to pool/main/g/grub2/grub2_1.96+20090401-1_amd64.deb
grub2_1.96+20090401.orig.tar.gz
to pool/main/g/grub2/grub2_1.96+20090401.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Robert Millan <[email protected]> (supplier of updated grub2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 01 Apr 2009 01:19:45 +0200
Source: grub2
Binary: grub2 grub-linuxbios grub-common grub-pc grub-rescue-pc grub-coreboot
grub-efi grub-ieee1275
Architecture: source amd64
Version: 1.96+20090401-1
Distribution: experimental
Urgency: low
Maintainer: GRUB Maintainers <[email protected]>
Changed-By: Robert Millan <[email protected]>
Description:
grub-common - GRand Unified Bootloader, version 2 (common files)
grub-coreboot - GRand Unified Bootloader, version 2 (Coreboot version)
grub-efi - GRand Unified Bootloader, version 2 (EFI version)
grub-ieee1275 - GRand Unified Bootloader, version 2 (Open Firmware version)
grub-linuxbios - GRand Unified Bootloader, version 2 (dummy package)
grub-pc - GRand Unified Bootloader, version 2 (PC/BIOS version)
grub-rescue-pc - GRUB bootable rescue images, version 2 (PC/BIOS version)
grub2 - GRand Unified Bootloader, version 2 (dummy package)
Closes: 514705 514837 519506 520286
Changes:
grub2 (1.96+20090401-1) experimental; urgency=low
.
[ Felix Zielcke ]
* New SVN snapshot.
- Pass grub's gfxterm mode to Linux kernel. (Closes: #519506)
- Fix ext4 extents on powerpc. (Closes: #520286)
.
[ Robert Millan ]
* Remove grub-of transitional package (Lenny had grub-ieee1275 already).
* Fix kopt parsing in grub-pc.config. Thanks Marcus Obst. (Closes: #514837)
* Add debconf template to automatically run grub-install during upgrades
(prior user confirmation). (Closes: #514705)
Checksums-Sha1:
3b037ddcdb6937ca35e845065988ccfc625c91c5 1853 grub2_1.96+20090401-1.dsc
3be54c10b4cbf93dc37f813d8e59761cde9d5df5 1062087
grub2_1.96+20090401.orig.tar.gz
7f87c651bd309fbbf9ac2871aa13175c8eb48337 48779 grub2_1.96+20090401-1.diff.gz
94c32a8923722bae07895c62274f43ae6773bb74 149782 grub2_1.96+20090401-1_amd64.deb
739cb5d64fdad2b8bbc6e98af79b54533bbc1db9 148670
grub-linuxbios_1.96+20090401-1_amd64.deb
a3721a01cf3d2285224ce34a21f4e4b62a8cbe25 1147728
grub-common_1.96+20090401-1_amd64.deb
0a03ecc172677d995826f22312d4f7902d04ecaf 495436
grub-pc_1.96+20090401-1_amd64.deb
2a74761c390b50ea3ef830a61adbe890fd0db74a 539624
grub-rescue-pc_1.96+20090401-1_amd64.deb
f3fb13d75fdbe900c67483c75d282e0b23430992 332810
grub-coreboot_1.96+20090401-1_amd64.deb
94e0b07da677744640c1fdd29642d1c3175ed479 380926
grub-efi_1.96+20090401-1_amd64.deb
af979bd6ee2fb2ed8306bc0581e99c6f62c24cd1 327194
grub-ieee1275_1.96+20090401-1_amd64.deb
Checksums-Sha256:
1c0403cf765e5e4921f14c4378055adcaa0357351d1b6b1ef7a468c815cdbfc8 1853
grub2_1.96+20090401-1.dsc
1a1dc923b44a02f0e337e2bdd480ca06f6331df8d6ffbeef7d0a29e93e1002fb 1062087
grub2_1.96+20090401.orig.tar.gz
f96f5ed6dd612c974a375dda2ce5df3e09f34462b4217ec061f8dd71e31d19b4 48779
grub2_1.96+20090401-1.diff.gz
1205f7475d9c7e53dec9c2112531b27af0d70e5154a280a31ed70526f3f355da 149782
grub2_1.96+20090401-1_amd64.deb
06afe4088ba60d634cd291d038f26ff8daf71c80ec847b3b3c82df37cfbce9ab 148670
grub-linuxbios_1.96+20090401-1_amd64.deb
0ac9a53ca227ad5787b5b414f6c8e00f646f6b3e859cfce15347f473a1c61ad4 1147728
grub-common_1.96+20090401-1_amd64.deb
2fb74b17ac25c3b18c4ca13314555c0f0a955b2133b11cf3026692b0442de328 495436
grub-pc_1.96+20090401-1_amd64.deb
6255b48aad7bd8c95ff0450182354635579bbe4e6aabfee19e2dba875069203b 539624
grub-rescue-pc_1.96+20090401-1_amd64.deb
42d55d03143c9815d4046ca0e89689aa7e12ea63cdd046c52fa3ba121cc6047a 332810
grub-coreboot_1.96+20090401-1_amd64.deb
bcdfef12c316eeabde3202161b255401a852a6f2161e400e0c602be8cc973da6 380926
grub-efi_1.96+20090401-1_amd64.deb
4ed4a9c06bbef1905748af03e155d7bb4cdfa112fc2e4ba587b67d573fd99ba3 327194
grub-ieee1275_1.96+20090401-1_amd64.deb
Files:
274823f3fe988d226f1c60981a33388e 1853 admin extra grub2_1.96+20090401-1.dsc
06d0e18b11e486b732391e4b6bca9f86 1062087 admin extra
grub2_1.96+20090401.orig.tar.gz
24267f3a72f50254b7533adbea5ce832 48779 admin extra
grub2_1.96+20090401-1.diff.gz
12deb56221e5d807d39d29cb901b7cd8 149782 admin extra
grub2_1.96+20090401-1_amd64.deb
c67081667a6ffff9119b2ebeaeec76ed 148670 admin extra
grub-linuxbios_1.96+20090401-1_amd64.deb
a0cd4cd266787cf1ba58aca87ca9ff0d 1147728 admin extra
grub-common_1.96+20090401-1_amd64.deb
e38181b0ae96c7b23f828d8850543a43 495436 admin extra
grub-pc_1.96+20090401-1_amd64.deb
1b86c9e5831169e7d1f64f9a1bdd5661 539624 admin extra
grub-rescue-pc_1.96+20090401-1_amd64.deb
f547ee0f9cbd7294542c6b7b378f8ba0 332810 admin extra
grub-coreboot_1.96+20090401-1_amd64.deb
2286870ee21162d4c4501130900cf78f 380926 admin extra
grub-efi_1.96+20090401-1_amd64.deb
dc15337f92b4d711967249e21f10a776 327194 admin extra
grub-ieee1275_1.96+20090401-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknSslQACgkQC19io6rUCv+5lACfUgS83WYNcUgNtCZ6ZEansNNd
PecAoIbWzP6cOJmFaATpv0BJ9WL5U5Ir
=TCjr
-----END PGP SIGNATURE-----
--- End Message ---