Blame 0026-dracut-functions-hmac-checksum-files-can-be-symlinks.patch

Harald Hoyer 55891e
From 5f06f0c36701a3e3eb1c6e92ec173285dca3c922 Mon Sep 17 00:00:00 2001
Harald Hoyer 55891e
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 55891e
Date: Wed, 31 Aug 2011 15:22:09 +0200
Harald Hoyer 55891e
Subject: [PATCH] dracut-functions: hmac checksum files can be symlinks, too
Harald Hoyer 55891e
Harald Hoyer 55891e
use inst() instead of inst_simple() to install the hmac files
Harald Hoyer 55891e
---
Harald Hoyer 55891e
 dracut-functions |    4 ++--
Harald Hoyer 55891e
 1 files changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer 55891e
Harald Hoyer 55891e
diff --git a/dracut-functions b/dracut-functions
Harald Hoyer 55891e
index c28766e..3edd4c7 100755
Harald Hoyer 55891e
--- a/dracut-functions
Harald Hoyer 55891e
+++ b/dracut-functions
Harald Hoyer 55891e
@@ -320,7 +320,7 @@ inst_simple() {
Harald Hoyer 55891e
     fi
Harald Hoyer 55891e
     # install checksum files also
Harald Hoyer 55891e
     if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
Harald Hoyer 55891e
-        inst_simple "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
Harald Hoyer 55891e
+        inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
Harald Hoyer 55891e
     fi
Harald Hoyer 55891e
     ddebug "Installing $_src"
Harald Hoyer 55891e
     cp -pfL "$_src" "${initdir}$target" 
Harald Hoyer 55891e
@@ -360,7 +360,7 @@ inst_library() {
Harald Hoyer 55891e
     if [[ -L $_src ]]; then
Harald Hoyer 55891e
         # install checksum files also
Harald Hoyer 55891e
         if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
Harald Hoyer 55891e
-            inst_simple "${_src%/*}/.${_src##*/}.hmac" "${_dest%/*}/.${_dest##*/}.hmac"
Harald Hoyer 55891e
+            inst "${_src%/*}/.${_src##*/}.hmac" "${_dest%/*}/.${_dest##*/}.hmac"
Harald Hoyer 55891e
         fi
Harald Hoyer 55891e
         _reallib=$(readlink -f "$_src")
Harald Hoyer 55891e
         inst_simple "$_reallib" "$_reallib"