[Bug 619218] New: /etc/sysconfig/kernel KMS setting should not start with NO
http://bugzilla.novell.com/show_bug.cgi?id=619218 http://bugzilla.novell.com/show_bug.cgi?id=619218#c0 Summary: /etc/sysconfig/kernel KMS setting should not start with NO Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 The current setting in /etc/sysconfig/kernel for KMS is: NO_KMS_IN_INITRD="" However, it's bad practice to use "NO" in a setting, because setting the *value* to "no" is a double negative, and people find it hard to parse the meaning of the setting that way. It should be: KMS_IN_INITRD="" # defaults to yes There is still time to fix! Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c1
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c2
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c3
Michal Marek
well, I'm just providing the variable. The use of it is in /lib/mkinitrd/scripts/setup-kms.sh. Michal: do we want to change this ? Does this still default to not setting up kms ?
Egbert contributed the kms scripts.
(I can provide renaming the variable and reversing the current setting on update if wanted in the install scripts of aaa_base), but actually: why does this file belong to aaa_base at all while the whole thing could live in mkinitrd ?
INITRD_MODULES, DOMU_INITRD_MODULES, ACPI_DSDT and NO_KMS_IN_INITRD are variables read by mkinitrd. MODULES_LOADED_ON_BOOT is read by /etc/init.d/boot.loadmodules. SKIP_RUNNING_KERNEL can be removed. So yes, most of the variables are used by mkinitd, although the *MODULES once are obsolete. What everything needs to be done to move a sysconfig file from one package to another (IOW is it worth it)? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c4
Egbert Eich
(In reply to comment #2)
well, I'm just providing the variable. The use of it is in /lib/mkinitrd/scripts/setup-kms.sh. Michal: do we want to change this ? Does this still default to not setting up kms ?
Egbert contributed the kms scripts.
I could add the inverse semantics not replace what we currently have - this would be really easy - still I'm hesitant as this might produce some nightmare on the update process. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c5
Jon Nelson
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c6
--- Comment #6 from Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c7
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c8
--- Comment #8 from Egbert Eich
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c9
Christian Boltz
I could add the inverse semantics not replace what we currently have - this would be really easy -
Things aren't always as easy as they might look ;-)
still I'm hesitant as this might produce some nightmare on the update process.
Your guess was right - this *is* producing a nightmare on update. (OK, I'm exaggerating ;-) Bruno Friedmann wrote this in opensuse-factory yesterday: ------------------------------------------------------------------------------- Sid I mean on new factory install the NO_KMS_IN_INITRD="yes" become KMS_IN_INITRD="no" The upgrade process is faulty with wrong sed or regex as I've finished with a NO_KMS_IN_INITRD="noyes" and KMS_IN_INITRD="yes" ------------------------------------------------------------------------------- The "yesno" looks as if the update script can't decide ;-)) mkinitrd.spec from Base:System looks somewhat buggy, even if it seems to have the bug in the KMS_IN_INITRD variable instead of the NO_KMS_... variable: %post: [...] case "$NO_KMS_IN_INITRD" in no) sed -i -e "s@^KMS_IN_INITRD=@KMS_IN_INITRD=\"yes\"@" /etc/sysconfig/kernel ;; yes) sed -i -e "s@^KMS_IN_INITRD=@KMS_IN_INITRD=\"no\"@" /etc/sysconfig/kernel ;; esac You probably want to add ".*" to the search part to replace the whole line (and not only everything until the "=", which will at least result in additional, useless quotes, or in a "yesno" if things go worse). I'd also use single quotes to make the sed command better readable. In other words, I'd recommend to use the following sed commands: no) sed -i -e 's@^KMS_IN_INITRD=.*@KMS_IN_INITRD="yes"@' /etc/sysconfig/kernel ;; yes) sed -i -e 's@^KMS_IN_INITRD=.*@KMS_IN_INITRD="no"@' /etc/sysconfig/kernel ;; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c10
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c11
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c12
Stefan Dirsch
On Thu, Nov 03, 2011 at 02:31:08PM +0100, Stefan Dirsch wrote:
Dear Michal
Why did you do this change (even not documented in the package changelog!)
NO_KMS_IN_INITRD --> KMS_IN_INITRD
in mkinitrd?!? I'm really not interested in changing all the nvidia/fglrx packages accordingly, so that I would need to handle both versions for older *and* newer products. Please consider reverting this change. Thanks!
Ah, I didn't consider nvidia and fglrx (or any other setting by scripts) at all, otherwise I would have rejected the name change.
Apparently this change in git.
commit aa6970e7149abebaa84c09bd1a00f63071db0c2f Author: Michal Marek
Date: Tue Jun 14 15:40:26 2011 +0200 Merge Factory changes by Rudi
Signed-off-by: Michal Marek
The bugnumber was bnc#619218. Can you reopen it and post the same angry message there? :) I agree that it should be reverted. Michal -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c13
--- Comment #13 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c14
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c15
--- Comment #15 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=619218
https://bugzilla.novell.com/show_bug.cgi?id=619218#c16
--- Comment #16 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com