BTS

Issue731

Title getbootparam returns wrong parameter
Priority bug Status resolved
Superseder Nosy List mika, mru
Assigned To mika Topics

Created on 2009-09-09.15:12:18 by mru, last changed 2009-09-10.13:46:26 by mika.

Files
File name Uploaded Type Edit Remove
new-0001-fixed-getbootparam-to-return-the-correct-parameter-o.patch mru, 2009-09-09.17:32:12 text/x-diff
old-0001-fixed-getbootparam-to-return-the-correct-parameter-o.patch mru, 2009-09-09.15:12:15 text/x-diff
Messages
msg2473 (view) Author: mika Date: 2009-09-10.13:46:26
Fixed with recent upload of grml-autoconfig (0.8.28) (I forgot to add 'Closes: 
issue731', hmpf).
msg2469 (view) Author: mika Date: 2009-09-09.20:16:10
Reopening and setting Status to fixed-in-git. :) [Will be closed by upload of 
the package which will happen soon.]

Thanks for your great work, mru!

regards,
-mika-
msg2468 (view) Author: mru Date: 2009-09-09.20:14:09
fixed in latest git
msg2467 (view) Author: mru Date: 2009-09-09.17:32:12
the first patch does not work with on the first option, attached patch should
handle it, but needs grep and sed.
So there is place for improvement ;)
msg2466 (view) Author: mru Date: 2009-09-09.15:12:15
getbootparam returns the wrong parameter if option name is a substring of
another option

Attached patch should fix this.

example:

[~ ] -> source /etc/grml/autoconfig.functions
[~ ] -> export CMDLINE='apm=power-off vga=791 quiet
initrd=/boot/grmldailysid/initrd.gz boot=live nomce  noeject ssh=grml noprompt
noquick config scripts=/live/image/unp.sh netconfig=192.168.0.1/config.tbz'
[~ ] -> getbootparam config                  
apm=power-off
History
Date User Action Args
2009-09-10 13:46:26mikasetstatus: fixed-in-git -> resolved
messages: + msg2473
2009-09-09 20:16:11mikasetstatus: resolved -> fixed-in-git
messages: + msg2469
2009-09-09 20:14:11mrusetstatus: chatting -> resolved
messages: + msg2468
2009-09-09 17:32:13mrusetfiles: + new-0001-fixed-getbootparam-to-return-the-correct-parameter-o.patch
status: unread -> chatting
messages: + msg2467
2009-09-09 15:12:18mrucreate