Blame 0080-30convertfs-convertfs.sh-fix-check-for-var-run-and-v.patch
|
Harald Hoyer |
6d5d06 |
From 61ad49e7d33a89e8ca4d604c2da5ff69c2548bdc Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
6d5d06 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
6d5d06 |
Date: Thu, 2 Feb 2012 19:18:48 +0100
|
|
Harald Hoyer |
6d5d06 |
Subject: [PATCH] 30convertfs/convertfs.sh: fix check for /var/run and
|
|
Harald Hoyer |
6d5d06 |
/var/lock
|
|
Harald Hoyer |
6d5d06 |
|
|
Harald Hoyer |
6d5d06 |
---
|
|
Harald Hoyer |
6d5d06 |
modules.d/30convertfs/convertfs.sh | 4 ++--
|
|
Harald Hoyer |
6d5d06 |
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
6d5d06 |
|
|
Harald Hoyer |
6d5d06 |
diff --git a/modules.d/30convertfs/convertfs.sh b/modules.d/30convertfs/convertfs.sh
|
|
Harald Hoyer |
6d5d06 |
index 6c76a4c..eaeb8e4 100755
|
|
Harald Hoyer |
6d5d06 |
--- a/modules.d/30convertfs/convertfs.sh
|
|
Harald Hoyer |
6d5d06 |
+++ b/modules.d/30convertfs/convertfs.sh
|
|
Harald Hoyer |
6d5d06 |
@@ -160,13 +160,13 @@ if [ "$SELINUX" != "disabled" ] && [ -f /etc/selinux/${SELINUXTYPE}/contexts/fil
|
|
Harald Hoyer |
6d5d06 |
/usr/sbin/setfiles -r $ROOT -p /etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts $ROOT/sbin $ROOT/bin $ROOT/lib $ROOT/lib64 $ROOT/usr/lib $ROOT/usr/lib64 $ROOT/etc/ld.so.cache $ROOT/var/cache/ldconfig || :
|
|
Harald Hoyer |
6d5d06 |
fi
|
|
Harald Hoyer |
6d5d06 |
|
|
Harald Hoyer |
6d5d06 |
-if [ -d $ROOT/var/run ]; then
|
|
Harald Hoyer |
6d5d06 |
+if [ ! -L $ROOT/var/run ]; then
|
|
Harald Hoyer |
6d5d06 |
echo "Converting /var/run to symlink"
|
|
Harald Hoyer |
6d5d06 |
mv -f $ROOT/var/run $ROOT/var/run.runmove~
|
|
Harald Hoyer |
6d5d06 |
ln -sfn ../run $ROOT/var/run
|
|
Harald Hoyer |
6d5d06 |
fi
|
|
Harald Hoyer |
6d5d06 |
|
|
Harald Hoyer |
6d5d06 |
-if [ -d $ROOT/var/lock ]; then
|
|
Harald Hoyer |
6d5d06 |
+if [ ! -L $ROOT/var/lock ]; then
|
|
Harald Hoyer |
6d5d06 |
echo "Converting /var/lock to symlink"
|
|
Harald Hoyer |
6d5d06 |
mv -f $ROOT/var/lock $ROOT/var/lock.lockmove~
|
|
Harald Hoyer |
6d5d06 |
ln -sfn ../run/lock $ROOT/var/lock
|