Blame 0023-dracut.spec-move-sbin-dracut-to-usr-sbin-dracut.patch

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