Blame 0065-usrmount-always-install.patch
|
Harald Hoyer |
30adad |
From ded4c82acedb373ed4393b69a9683c6bee38ff48 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
30adad |
From: Alexander Tsoy <alexander@tsoy.me>
|
|
Harald Hoyer |
30adad |
Date: Thu, 21 Nov 2013 20:33:38 +0400
|
|
Harald Hoyer |
30adad |
Subject: [PATCH] usrmount: always install
|
|
Harald Hoyer |
30adad |
|
|
Harald Hoyer |
30adad |
/usr should be mounted by initramfs even if /sbin/init lives in /
|
|
Harald Hoyer |
30adad |
---
|
|
Harald Hoyer |
30adad |
modules.d/98usrmount/module-setup.sh | 3 ---
|
|
Harald Hoyer |
30adad |
1 file changed, 3 deletions(-)
|
|
Harald Hoyer |
30adad |
|
|
Harald Hoyer |
30adad |
diff --git a/modules.d/98usrmount/module-setup.sh b/modules.d/98usrmount/module-setup.sh
|
|
Harald Hoyer |
30adad |
index d8a0ec2..31a6229 100755
|
|
Harald Hoyer |
30adad |
--- a/modules.d/98usrmount/module-setup.sh
|
|
Harald Hoyer |
30adad |
+++ b/modules.d/98usrmount/module-setup.sh
|
|
Harald Hoyer |
30adad |
@@ -4,10 +4,7 @@
|
|
Harald Hoyer |
30adad |
|
|
Harald Hoyer |
30adad |
# called by dracut
|
|
Harald Hoyer |
30adad |
check() {
|
|
Harald Hoyer |
30adad |
- local _init
|
|
Harald Hoyer |
30adad |
[[ $mount_needs ]] && return 1
|
|
Harald Hoyer |
30adad |
- _init=$(readlink -f /sbin/init)
|
|
Harald Hoyer |
30adad |
- [[ "$_init" == "${_init##/usr}" ]] && return 255
|
|
Harald Hoyer |
30adad |
return 0
|
|
Harald Hoyer |
30adad |
}
|
|
Harald Hoyer |
30adad |
|