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