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

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