sys-kernel/dracut: Use systemd_get_systemunitdir instead of systemd_get_unitdir
authorPatrick McLean <chutzpah@gentoo.org>
Thu, 9 Feb 2017 21:41:29 +0000 (13:41 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Thu, 9 Feb 2017 21:41:29 +0000 (13:41 -0800)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

sys-kernel/dracut/dracut-044-r2.ebuild

index 394da6ea72a310f7cae9ad237897dee5943cb6c6..b4ac5de9ac4d55eab2b9714f5e8d64b316c3d6f8 100644 (file)
@@ -98,7 +98,7 @@ src_prepare() {
 
        if use systemd; then
                local systemdutildir="$(systemd_get_utildir)"
-               local systemdsystemunitdir="$(systemd_get_unitdir)"
+               local systemdsystemunitdir="$(systemd_get_systemunitdir)"
                local systemdsystemconfdir="$("$(tc-getPKG_CONFIG)" systemd \
                        --variable=systemdsystemconfdir)"
                [[ ${systemdsystemconfdir} ]] \
@@ -130,7 +130,7 @@ src_configure() {
        )
 
        if use systemd; then
-               myconf+=( --systemdsystemunitdir="$(systemd_get_unitdir)" )
+               myconf+=( --systemdsystemunitdir="$(systemd_get_systemunitdir)" )
        fi
 
        econf "${myconf[@]}"