Blame 0071-dracut.spec-add-compat-symlinks-to-sbin.patch
|
Harald Hoyer |
8e216f |
From 4cbc0c79ac19d021f6f884a779c19c05fd9e5a20 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
8e216f |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
8e216f |
Date: Thu, 26 Jan 2012 12:41:03 +0100
|
|
Harald Hoyer |
8e216f |
Subject: [PATCH] dracut.spec: add compat symlinks to /sbin
|
|
Harald Hoyer |
8e216f |
|
|
Harald Hoyer |
8e216f |
---
|
|
Harald Hoyer |
8e216f |
dracut.spec | 12 ++++++++++++
|
|
Harald Hoyer |
8e216f |
1 files changed, 12 insertions(+), 0 deletions(-)
|
|
Harald Hoyer |
8e216f |
|
|
Harald Hoyer |
8e216f |
diff --git a/dracut.spec b/dracut.spec
|
|
Harald Hoyer |
8e216f |
index 06533e3..4eb3ba3 100644
|
|
Harald Hoyer |
8e216f |
--- a/dracut.spec
|
|
Harald Hoyer |
8e216f |
+++ b/dracut.spec
|
|
Harald Hoyer |
8e216f |
@@ -197,13 +197,25 @@ rm $RPM_BUILD_ROOT%{_bindir}/lsinitrd
|
|
Harald Hoyer |
8e216f |
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
|
Harald Hoyer |
8e216f |
install -m 0644 dracut.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/dracut_log
|
|
Harald Hoyer |
8e216f |
|
|
Harald Hoyer |
8e216f |
+# create the ghosts
|
|
Harald Hoyer |
8e216f |
+mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT/sbin
|
|
Harald Hoyer |
8e216f |
+ln -s ../bin/dracut $RPM_BUILD_ROOT%{_sbindir}/dracut
|
|
Harald Hoyer |
8e216f |
+ln -s ../usr/bin/dracut $RPM_BUILD_ROOT/sbin/dracut
|
|
Harald Hoyer |
8e216f |
+
|
|
Harald Hoyer |
8e216f |
%clean
|
|
Harald Hoyer |
8e216f |
rm -rf $RPM_BUILD_ROOT
|
|
Harald Hoyer |
8e216f |
|
|
Harald Hoyer |
8e216f |
+%post -p <lua>
|
|
Harald Hoyer |
8e216f |
+posix.symlink("../bin/dracut", "%{_sbindir}/dracut")
|
|
Harald Hoyer |
8e216f |
+posix.symlink("../usr/bin/dracut", "/sbin/dracut")
|
|
Harald Hoyer |
8e216f |
+return 0
|
|
Harald Hoyer |
8e216f |
+
|
|
Harald Hoyer |
8e216f |
%files
|
|
Harald Hoyer |
8e216f |
%defattr(-,root,root,0755)
|
|
Harald Hoyer |
8e216f |
%doc README HACKING TODO COPYING AUTHORS NEWS dracut.html dracut.png dracut.svg
|
|
Harald Hoyer |
8e216f |
%{_bindir}/dracut
|
|
Harald Hoyer |
8e216f |
+%ghost /sbin/dracut
|
|
Harald Hoyer |
8e216f |
+%ghost %{_sbindir}/dracut
|
|
Harald Hoyer |
8e216f |
%if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999
|
|
Harald Hoyer |
8e216f |
%{_bindir}/mkinitrd
|
|
Harald Hoyer |
8e216f |
%{_bindir}/lsinitrd
|