Re: [PATCH] dracut-functions: fixed doubled $initdir prefix inst_library()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

2011/2/25 Amadeusz ÅoÅnowski <aidecoe@xxxxxxxxxxxx>:
> Commit 172d85b9c949b321771d63dbd5f06ecf19cf94f0 caused following error:
>
> ./dracut-functions: line 307: cd: /tmp/initramfs.mP7cPY/tmp/initramfs.mP7cPY/lib64: No such file or directory
>
> Patch removes beginning $initdir for symlink case.
> ---
> Âdracut-functions | Â Â6 ++++--
> Â1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/dracut-functions b/dracut-functions
> index 1cb43e7..cc16760 100755
> --- a/dracut-functions
> +++ b/dracut-functions
> @@ -302,8 +302,10 @@ inst_library() {
> Â Â Â Â lib=${src##*/}
> Â Â Â Â inst_simple "$reallib" "$reallib"
> Â Â Â Â inst_dir "${dest%/*}"
> - Â Â Â Â[[ -L ${initdir}${dest%/*} ]] && \
> - Â Â Â Âdest=$(readlink -f ${initdir}${dest%/*})/
> + Â Â Â Âif [[ -L ${initdir}${dest%/*} ]]; then
> + Â Â Â Â Â Âdest=$(readlink -f ${initdir}${dest%/*})/
> + Â Â Â Â Â Âdest=${dest#${initdir}}
> + Â Â Â Âfi
> Â Â Â Â (cd "${initdir}${dest%/*}" && ln -s "$reallib" "$lib")

I'm sorry about the trouble caused by my patch I didn't considered the
case /lib64 -> lib. On debian I was getting /lib64 -> /lib

Regards,

JonAn.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux