Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489624 - >=sys-kernel/dracut-031 - usrmount module is not included when needed
Summary: >=sys-kernel/dracut-031 - usrmount module is not included when needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-27 20:57 UTC by Alexander Tsoy
Modified: 2013-12-14 16:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dracut-034-fix-usrmount.patch (dracut-034-fix-usrmount.patch,418 bytes, patch)
2013-11-20 20:16 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2013-10-27 20:57:05 UTC
1. For systemd users.
Since dracut-031 usrmount module is not included in initramfs. I guess this should break setups with separate /usr + systemd + dracut initramfs without systemd module. This issue has been introduced in commit [1] and it haven't been fixed even by commit [2], because on gentoo /sbin/init is not a symlink to systemd binary.

2. For openrc users.
dracut's upstream have opinion that if /sbin/init is not on /usr, then /usr should be mounted by init and not by initramfs [3]. AFAIK our openrc devs expects that /usr is mounted by initramfs: for example, openrc lauches udev before mounting /usr ("localmount" service).

[1] http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=1a1c80febe939733161d52ab80963e8cef9ebc62
[2] http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=0106da599a227cf1c28c3648b7e77985f617b878
[3] http://article.gmane.org/gmane.linux.kernel.initramfs/3453
Comment 1 Alexander Tsoy 2013-10-28 12:35:59 UTC
(In reply to Alexander Tsoy from comment #0)
> 2. For openrc users.
> dracut's upstream have opinion that if /sbin/init is not on /usr, then /usr
> should be mounted by init and not by initramfs [3]. AFAIK our openrc devs
> expects that /usr is mounted by initramfs: for example, openrc lauches udev
> before mounting /usr ("localmount" service).
> 

Actually the same problem should be with systemd installed into "/". So this looks like a real dracut bug.
Comment 2 Alexander Tsoy 2013-11-20 20:15:46 UTC
In recent dracut versions systemd module is always included if systemd is installed on the system. So systemd users are not affected by this bug.
Comment 3 Alexander Tsoy 2013-11-20 20:16:49 UTC
Created attachment 363696 [details, diff]
dracut-034-fix-usrmount.patch
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-12-14 16:09:37 UTC
Thanks Alexander!

+*dracut-034-r2 (14 Dec 2013)
+
+  14 Dec 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-034-r2.ebuild,
+  +files/034-0013-usrmount-always-install.patch:
+  Committing on behalf of Alexander Tsoy <alexander@tsoy.me>.
+  Fixes bug #489624 and bug #491778.
+
+  usrmount module used to be not always installed when it was needed.
+