Blame 0027-dracut-install-lib-for-kernel-images.patch
|
Harald Hoyer |
428fde |
From 6f09acf8558d0ce7f831d05b3aa0abbc9c136414 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
428fde |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
428fde |
Date: Mon, 25 Jul 2011 14:28:40 +0200
|
|
Harald Hoyer |
428fde |
Subject: [PATCH] dracut: install /lib* for kernel images
|
|
Harald Hoyer |
428fde |
|
|
Harald Hoyer |
428fde |
---
|
|
Harald Hoyer |
428fde |
dracut | 9 +++++++++
|
|
Harald Hoyer |
428fde |
1 files changed, 9 insertions(+), 0 deletions(-)
|
|
Harald Hoyer |
428fde |
|
|
Harald Hoyer |
428fde |
diff --git a/dracut b/dracut
|
|
Harald Hoyer |
428fde |
index 079d5be..aa8cb58 100755
|
|
Harald Hoyer |
428fde |
--- a/dracut
|
|
Harald Hoyer |
428fde |
+++ b/dracut
|
|
Harald Hoyer |
428fde |
@@ -503,6 +503,15 @@ if [[ $kernel_only != yes ]]; then
|
|
Harald Hoyer |
428fde |
|
|
Harald Hoyer |
428fde |
ln -sfn /run "$initdir/var/run"
|
|
Harald Hoyer |
428fde |
ln -sfn /run/lock "$initdir/var/lock"
|
|
Harald Hoyer |
428fde |
+else
|
|
Harald Hoyer |
428fde |
+ for d in lib "$libdir"; do
|
|
Harald Hoyer |
428fde |
+ [[ -e "${initdir}${prefix}/$d" ]] && continue
|
|
Harald Hoyer |
428fde |
+ if [ -h "/$d" ]; then
|
|
Harald Hoyer |
428fde |
+ inst "/$d" "${prefix}/$d"
|
|
Harald Hoyer |
428fde |
+ else
|
|
Harald Hoyer |
428fde |
+ mkdir -m 0755 -p "${initdir}${prefix}/$d"
|
|
Harald Hoyer |
428fde |
+ fi
|
|
Harald Hoyer |
428fde |
+ done
|
|
Harald Hoyer |
428fde |
fi
|
|
Harald Hoyer |
428fde |
|
|
Harald Hoyer |
428fde |
# check all our modules to see if they should be sourced.
|