dracut-functions: hmac checksum files can be symlinks, too
use inst() instead of inst_simple() to install the hmac filesmaster
parent
1e2f60993f
commit
5f06f0c367
|
@ -320,7 +320,7 @@ inst_simple() {
|
||||||
fi
|
fi
|
||||||
# install checksum files also
|
# install checksum files also
|
||||||
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
|
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
|
||||||
inst_simple "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
|
inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
|
||||||
fi
|
fi
|
||||||
ddebug "Installing $_src"
|
ddebug "Installing $_src"
|
||||||
cp -pfL "$_src" "${initdir}$target"
|
cp -pfL "$_src" "${initdir}$target"
|
||||||
|
@ -360,7 +360,7 @@ inst_library() {
|
||||||
if [[ -L $_src ]]; then
|
if [[ -L $_src ]]; then
|
||||||
# install checksum files also
|
# install checksum files also
|
||||||
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
|
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
|
||||||
inst_simple "${_src%/*}/.${_src##*/}.hmac" "${_dest%/*}/.${_dest##*/}.hmac"
|
inst "${_src%/*}/.${_src##*/}.hmac" "${_dest%/*}/.${_dest##*/}.hmac"
|
||||||
fi
|
fi
|
||||||
_reallib=$(readlink -f "$_src")
|
_reallib=$(readlink -f "$_src")
|
||||||
inst_simple "$_reallib" "$_reallib"
|
inst_simple "$_reallib" "$_reallib"
|
||||||
|
|
Loading…
Reference in New Issue