https://bugzilla.novell.com/show_bug.cgi?id=619218 https://bugzilla.novell.com/show_bug.cgi?id=619218#c9 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno@ioda-net.ch, | |suse-beta@cboltz.de --- Comment #9 from Christian Boltz <suse-beta@cboltz.de> 2011-06-14 00:36:46 CEST --- (In reply to comment #4) (Egbert)
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.