Re: [PATCH] dracut.sh: fix $tmpfilesdir fallback when systemd-devel is not installed.

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

 



Am 07.06.2016 um 10:16 schrieb Colin Guthrie:
> Bug introduced in 3a04bddeed in Dec 2014.
> ---
>  dracut.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/dracut.sh b/dracut.sh
> index 8232fa4..a50eaff 100755
> --- a/dracut.sh
> +++ b/dracut.sh
> @@ -1260,8 +1260,8 @@ fi
>      || tmpfilesdir=$(pkg-config systemd --variable=tmpfilesdir 2>/dev/null)
>  
>  if ! [[ -d "$tmpfilesdir" ]]; then
> -    [[ -f /lib/tmpfiles.d ]] && tmpfilesdir=/lib/tmpfiles.d
> -    [[ -f /usr/lib/tmpfiles.d ]] && tmpfilesdir=/usr/lib/tmpfiles.d
> +    [[ -d /lib/tmpfiles.d ]] && tmpfilesdir=/lib/tmpfiles.d
> +    [[ -d /usr/lib/tmpfiles.d ]] && tmpfilesdir=/usr/lib/tmpfiles.d
>  fi
>  
>  export initdir dracutbasedir \
> 

Thanks! Pushed
--
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