Bug 902375

Summary: mkinitrd/dracut ignores symlink in kernel argument
Product: [openSUSE] openSUSE Distribution Reporter: Per Jessen <per>
Component: BasesystemAssignee: Daniel Molkentin <daniel>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: daniel, felix.gerling, forgotten_lNYeazqpWh, trenn
Version: Leap 42.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Per Jessen 2014-10-23 09:59:16 UTC
I have the following:

/boot/vmlinuz -> vmlinuz-vmlinuz-3.16.4-1.g7a8842b-desktop

when I run mkinitrd

# mkinitrd -i initrd -k vmlinuz -f nfs
Creating initrd: /boot/initrd
Kernel version vmlinuz has no module directory /lib/modules/vmlinuz

This clearly doesnt work, apparently "vmlinuz" is taken literally instead of as a symlink?
Comment 1 Per Jessen 2014-10-23 10:15:54 UTC
(In reply to Per Jessen from comment #0)
> I have the following:
> 
> /boot/vmlinuz -> vmlinuz-vmlinuz-3.16.4-1.g7a8842b-desktop
> 

Correction:

/boot/vmlinuz -> vmlinuz-3.16.4-1.g7a8842b-desktop
Comment 2 Julian Wolf 2014-12-09 17:02:22 UTC
Thanks, found the issue in our mkinitrd-wrapper.

Pull request created in our git repo, Thomas will take care to push it into OBS.

https://github.com/juwolf/dracut/commit/79af2eb24824bc383113e62424ee8d166e0cc65b
Comment 3 Per Jessen 2015-04-03 12:13:29 UTC
(In reply to Julian Wolf from comment #2)
> Thanks, found the issue in our mkinitrd-wrapper.
> 
> Pull request created in our git repo, Thomas will take care to push it into
> OBS.
> 
> https://github.com/juwolf/dracut/commit/
> 79af2eb24824bc383113e62424ee8d166e0cc65b

FYI, the issue remains in a freshly installed system (13.2+updates).
Comment 5 Swamp Workflow Management 2015-04-28 14:05:59 UTC
SUSE-RU-2015:0788-1: An update that has 9 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 886839,897252,902375,903001,911660,912734,914126,916348,918238
CVE References: 
Sources used:
SUSE Linux Enterprise Server 12 (src):    dracut-037-46.1
SUSE Linux Enterprise Desktop 12 (src):    dracut-037-46.1
Comment 6 Bernhard Wiedemann 2015-06-05 15:00:20 UTC
This is an autogenerated message for OBS integration:
This bug (902375) was mentioned in
https://build.opensuse.org/request/show/310537 13.2 / dracut
Comment 7 Per Jessen 2016-09-02 09:54:37 UTC
This issue seems to have reappeared in Leap422.
Comment 9 Daniel Molkentin 2016-11-17 15:51:55 UTC
I've added a fix, please try the package from https://build.opensuse.org/package/show/home:dmolkentin:branches:Base:System/dracut.
Comment 10 Daniel Molkentin 2017-01-16 09:53:43 UTC
Ping? I'd like an independent confirmation of this working. Thanks.
Comment 11 Per Jessen 2017-01-16 12:40:51 UTC
(In reply to Daniel Molkentin from comment #10)
> Ping? I'd like an independent confirmation of this working. Thanks.

Sorry it took so long, but I can confirm it works.  I don't think I like the installation of the package causing an automatic rebuild of my initrds though.
Comment 12 Bernhard Wiedemann 2017-01-16 21:00:44 UTC
This is an autogenerated message for OBS integration:
This bug (902375) was mentioned in
https://build.opensuse.org/request/show/450569 Factory / dracut
Comment 17 Daniel Molkentin 2017-02-06 16:12:35 UTC
Closing again after backport integration.
Comment 25 Swamp Workflow Management 2017-04-06 13:14:35 UTC
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