Blame 0016-dracut.sh-mkdir-initdir-lib-dracut.patch
|
Harald Hoyer |
d1bf89 |
From 43fed15129dc4916c37ebd8980aba78b6609943b Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
d1bf89 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
d1bf89 |
Date: Tue, 12 Jun 2012 11:35:49 -0400
|
|
Harald Hoyer |
d1bf89 |
Subject: [PATCH] dracut.sh: mkdir $initdir/lib/dracut
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
---
|
|
Harald Hoyer |
d1bf89 |
dracut.sh | 6 +++++-
|
|
Harald Hoyer |
d1bf89 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
diff --git a/dracut.sh b/dracut.sh
|
|
Harald Hoyer |
d1bf89 |
index a1b39e3..c26e0f8 100755
|
|
Harald Hoyer |
d1bf89 |
--- a/dracut.sh
|
|
Harald Hoyer |
d1bf89 |
+++ b/dracut.sh
|
|
Harald Hoyer |
d1bf89 |
@@ -731,7 +731,10 @@ if [[ $kernel_only != yes ]]; then
|
|
Harald Hoyer |
d1bf89 |
mkdir -m 0755 -p ${initdir}/lib/dracut/hooks/$_d
|
|
Harald Hoyer |
d1bf89 |
done
|
|
Harald Hoyer |
d1bf89 |
if [[ "$UID" = "0" ]]; then
|
|
Harald Hoyer |
d1bf89 |
- cp -a /dev/kmsg /dev/null /dev/console $initdir/dev
|
|
Harald Hoyer |
d1bf89 |
+ for i in /dev/kmsg /dev/null /dev/console; do
|
|
Harald Hoyer |
d1bf89 |
+ [ -e $i ] || continue
|
|
Harald Hoyer |
d1bf89 |
+ cp -a $i $initdir/dev
|
|
Harald Hoyer |
d1bf89 |
+ done
|
|
Harald Hoyer |
d1bf89 |
fi
|
|
Harald Hoyer |
d1bf89 |
fi
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
@@ -780,6 +783,7 @@ done
|
|
Harald Hoyer |
d1bf89 |
unset moddir
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
for i in $modules_loaded; do
|
|
Harald Hoyer |
d1bf89 |
+ mkdir -p $initdir/lib/dracut
|
|
Harald Hoyer |
d1bf89 |
echo "$i" >> $initdir/lib/dracut/modules.txt
|
|
Harald Hoyer |
d1bf89 |
done
|
|
Harald Hoyer |
d1bf89 |
|