summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/dracut/files/034-0013-usrmount-always-install.patch')
-rw-r--r--sys-kernel/dracut/files/034-0013-usrmount-always-install.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-kernel/dracut/files/034-0013-usrmount-always-install.patch b/sys-kernel/dracut/files/034-0013-usrmount-always-install.patch
new file mode 100644
index 000000000000..55fd87c1b08c
--- /dev/null
+++ b/sys-kernel/dracut/files/034-0013-usrmount-always-install.patch
@@ -0,0 +1,31 @@
+From ffbe30d1e1e9fb09136bfc2d29a3cc65292b5690 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <alexander@tsoy.me>
+Date: Thu, 21 Nov 2013 20:33:38 +0400
+Subject: [PATCH 13/13] usrmount: always install
+
+/usr should be mounted by initramfs even if /sbin/init lives in /
+
+Conflicts:
+ modules.d/98usrmount/module-setup.sh
+---
+ modules.d/98usrmount/module-setup.sh | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/modules.d/98usrmount/module-setup.sh b/modules.d/98usrmount/module-setup.sh
+index 1af789f..31a6229 100755
+--- a/modules.d/98usrmount/module-setup.sh
++++ b/modules.d/98usrmount/module-setup.sh
+@@ -4,10 +4,7 @@
+
+ # called by dracut
+ check() {
+- local _init
+ [[ $mount_needs ]] && return 1
+- _init=$(readlink -f /sbin/init)
+- [[ "$init" == "${init##/usr}" ]] && return 255
+ return 0
+ }
+
+--
+1.8.4.4
+