Blame 0003-30convertfs-convertfs.sh-use-hardlinks-for-inter-usr.patch
|
Harald Hoyer |
66318b |
From b6f0dcbda13bfb242114d619b4574df2a4f426ae Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
66318b |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
66318b |
Date: Sat, 25 Feb 2012 16:06:38 +0100
|
|
Harald Hoyer |
66318b |
Subject: [PATCH] 30convertfs/convertfs.sh: use hardlinks for inter-/usr cp
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
---
|
|
Harald Hoyer |
66318b |
modules.d/30convertfs/convertfs.sh | 2 +-
|
|
Harald Hoyer |
66318b |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
diff --git a/modules.d/30convertfs/convertfs.sh b/modules.d/30convertfs/convertfs.sh
|
|
Harald Hoyer |
66318b |
index 69c3b3e..036ec51 100755
|
|
Harald Hoyer |
66318b |
--- a/modules.d/30convertfs/convertfs.sh
|
|
Harald Hoyer |
66318b |
+++ b/modules.d/30convertfs/convertfs.sh
|
|
Harald Hoyer |
66318b |
@@ -106,7 +106,7 @@ for dir in bin sbin lib lib64; do
|
|
Harald Hoyer |
66318b |
[[ -d "$ROOT/$dir" ]] || continue
|
|
Harald Hoyer |
66318b |
echo "Make a copy of \`$ROOT/usr/$dir'."
|
|
Harald Hoyer |
66318b |
[[ -d "$ROOT/usr/$dir" ]] \
|
|
Harald Hoyer |
66318b |
- && cp -ax $CP_HARDLINK "$ROOT/usr/$dir" "$ROOT/usr/${dir}.usrmove-new"
|
|
Harald Hoyer |
66318b |
+ && cp -ax -l "$ROOT/usr/$dir" "$ROOT/usr/${dir}.usrmove-new"
|
|
Harald Hoyer |
66318b |
echo "Merge the copy with \`$ROOT/$dir'."
|
|
Harald Hoyer |
66318b |
[[ -d "$ROOT/usr/${dir}.usrmove-new" ]] \
|
|
Harald Hoyer |
66318b |
|| mkdir -p "$ROOT/usr/${dir}.usrmove-new"
|