Blame SOURCES/0032-dracut.spec-move-sbin-dracut-to-usr-sbin-dracut.patch

a56a5e
From 8eee542b4014166ef52efc20ab499aed4fe231d3 Mon Sep 17 00:00:00 2001
90b079
From: Harald Hoyer <harald@redhat.com>
90b079
Date: Mon, 21 Oct 2013 09:43:04 +0200
90b079
Subject: [PATCH] dracut.spec: move /sbin/dracut to /usr/sbin/dracut
90b079
90b079
---
90b079
 dracut.spec | 6 +++---
90b079
 1 file changed, 3 insertions(+), 3 deletions(-)
90b079
90b079
diff --git a/dracut.spec b/dracut.spec
1755ca
index 8dfc7535..596d7283 100644
90b079
--- a/dracut.spec
90b079
+++ b/dracut.spec
90b079
@@ -276,8 +276,8 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
90b079
 %endif
90b079
 
90b079
 # create compat symlink
90b079
-mkdir -p $RPM_BUILD_ROOT/sbin
90b079
-ln -s /usr/bin/dracut $RPM_BUILD_ROOT/sbin/dracut
90b079
+mkdir -p $RPM_BUILD_ROOT%{_sbindir}
90b079
+ln -sr $RPM_BUILD_ROOT%{_bindir}/dracut $RPM_BUILD_ROOT%{_sbindir}/dracut
90b079
 
90b079
 %clean
90b079
 rm -rf -- $RPM_BUILD_ROOT
90b079
@@ -287,7 +287,7 @@ rm -rf -- $RPM_BUILD_ROOT
90b079
 %doc README HACKING TODO COPYING AUTHORS NEWS dracut.html dracut.png dracut.svg
90b079
 %{_bindir}/dracut
90b079
 # compat symlink
90b079
-/sbin/dracut
90b079
+%{_sbindir}/dracut
90b079
 %{_datadir}/bash-completion/completions/dracut
90b079
 %{_datadir}/bash-completion/completions/lsinitrd
90b079
 %if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999