[Bug 1008648] New: /sbin/installkernel does not handle make bin-rpmpkg result
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Bug ID: 1008648 Summary: /sbin/installkernel does not handle make bin-rpmpkg result Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: ohering@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- make O=$dir bin-rpmpkg rpm -Uvh kernel.rpm This results in cp: cannot stat '.config': No such file or directory /sbin/installkernel expects to be run from $dir, which is not the case when installing a rpm package. I suggest to move /boot/config-version only if .config actually exists. but even then it is possible that .config and /boot/config-version are from different builds. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trenn@suse.com Assignee|bnc-team-screening@forge.pr |sfalken@opensuse.org |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |daniel.molkentin@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 http://bugzilla.suse.com/show_bug.cgi?id=1008648#c1 --- Comment #1 from Daniel Molkentin <daniel.molkentin@suse.com> --- Created attachment 717183 --> http://bugzilla.suse.com/attachment.cgi?id=717183&action=edit proposed patch Can you please apply this patch locally? (you might need to rename dracut-installkernel to installkernel in the patch). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Daniel Molkentin <daniel.molkentin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ohering@suse.com Flags| |needinfo?(ohering@suse.com) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 http://bugzilla.suse.com/show_bug.cgi?id=1008648#c2 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ohering@suse.com) | --- Comment #2 from Olaf Hering <ohering@suse.com> --- Thanks. This will probably help. The local change I have done looks like that: --- /sbin/installkernel 2017-02-26 17:08:43.000000000 +0100 +++ /sbin/installkernel~ 2016-11-15 13:35:50.712360443 +0100 @@ -64,8 +68,8 @@ if [ -f $INSTALL_PATH/System.map-$KERNEL fi -if [ -f $INSTALL_PATH/$CONFIGFILE ]; then - mv $INSTALL_PATH/$CONFIGFILE \ +if [ -f .config ] && [ -f $INSTALL_PATH/$CONFIGFILE ]; then + mv -v $INSTALL_PATH/$CONFIGFILE \ $INSTALL_PATH/$CONFIGFILE.old; fi @@ -75,7 +79,7 @@ fi cp -fp $BOOTIMAGE $INSTALL_PATH/$BOOTFILE-$KERNEL_VERSION cp -fp $MAPFILE $INSTALL_PATH/System.map-$KERNEL_VERSION -cp -fp .config $INSTALL_PATH/$CONFIGFILE +[ -f .config] && cp -fp .config $INSTALL_PATH/$CONFIGFILE # If the kernel has module support, recreate modules.dep using depmod I modified the global file, and my changes are overwritten after dracut update. So the above might be incomplete. Have not built a kernel since then. One part is that config.old needs to be handled somehow. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 http://bugzilla.suse.com/show_bug.cgi?id=1008648#c3 --- Comment #3 from Daniel Molkentin <daniel.molkentin@suse.com> --- I've added your patch to the staging repo. It will hit TW soon. Do you see any point in backports to SP2 and 1? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 http://bugzilla.suse.com/show_bug.cgi?id=1008648#c4 Daniel Molkentin <daniel.molkentin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Daniel Molkentin <daniel.molkentin@suse.com> --- After discussion on IRC, I've created backports now. Updates will hit openSUSE Leap repos eventually. Closing. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| maint:planned:update |maint:planned:update | |ibs:running:4068:moderate | |ibs:running:1835:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|maint:planned:update |ibs:running:4068:moderate |ibs:running:4068:moderate |ibs:running:1835:moderate |ibs:running:1835:moderate |ibs:running:4406:low -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 http://bugzilla.suse.com/show_bug.cgi?id=1008648#c11 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> --- SUSE-SU-2017:0951-1: An update that solves one vulnerability and has 10 fixes is now available. Category: security (moderate) Bug References: 1005410,1006118,1007925,1008340,1008648,1017141,1017695,1019938,1020063,1021687,902375 CVE References: CVE-2016-8637 Sources used: SUSE Linux Enterprise Server for Raspberry Pi 12-SP2 (src): dracut-044-108.1 SUSE Linux Enterprise Server 12-SP2 (src): dracut-044-108.1 SUSE Linux Enterprise Desktop 12-SP2 (src): dracut-044-108.1 OpenStack Cloud Magnum Orchestration 7 (src): dracut-044-108.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:4068:moderate |ibs:running:1835:moderate |ibs:running:1835:moderate |ibs:running:4406:low |ibs:running:4406:low | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:1835:moderate |ibs:running:1835:moderate |ibs:running:4406:low |ibs:running:4406:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:1835:moderate |ibs:running:1835:moderate |ibs:running:4406:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 http://bugzilla.suse.com/show_bug.cgi?id=1008648#c14 --- Comment #14 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2017:1333-1: An update that has 7 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1008648,1019938,1032576,1035743,906716,947670,955592 CVE References: Sources used: SUSE Linux Enterprise Server 12-SP1 (src): dracut-037-98.2 SUSE Linux Enterprise Desktop 12-SP1 (src): dracut-037-98.2 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 http://bugzilla.suse.com/show_bug.cgi?id=1008648#c15 --- Comment #15 from Swamp Workflow Management <swamp@suse.de> --- SUSE-SU-2017:2696-1: An update that solves one vulnerability and has 11 fixes is now available. Category: security (moderate) Bug References: 1005410,1006118,1007925,1008340,1008648,1017695,1032576,1035743,935320,959803,986734,986838 CVE References: CVE-2016-8637 Sources used: SUSE Linux Enterprise Server 12-LTSS (src): dracut-037-51.31.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1008648 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:1835:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com