summaryrefslogtreecommitdiff
path: root/dracut.spec
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-01-26 16:39:09 +0100
committerHarald Hoyer <harald@redhat.com>2012-01-26 16:41:35 +0100
commite4d85a77aad660b7877a3af091921e73865bfce6 (patch)
treef8e303c6b2b0dd3c35156725f62756a6fb2c4033 /dracut.spec
parent5ebad51b8461d501613f86bcc46fdda4eddbdaf9 (diff)
downloaddracut-e4d85a77aad660b7877a3af091921e73865bfce6.tar.gz
dracut-e4d85a77aad660b7877a3af091921e73865bfce6.tar.bz2
dracut-e4d85a77aad660b7877a3af091921e73865bfce6.zip
dracut.spec: create compat symlink, instead of %ghost
Diffstat (limited to 'dracut.spec')
-rw-r--r--dracut.spec16
1 files changed, 5 insertions, 11 deletions
diff --git a/dracut.spec b/dracut.spec
index 4eb3ba39..10556d02 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -197,25 +197,19 @@ rm $RPM_BUILD_ROOT%{_bindir}/lsinitrd
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
install -m 0644 dracut.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/dracut_log
-# create the ghosts
-mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT/sbin
-ln -s ../bin/dracut $RPM_BUILD_ROOT%{_sbindir}/dracut
-ln -s ../usr/bin/dracut $RPM_BUILD_ROOT/sbin/dracut
+# create compat symlink
+mkdir -p $RPM_BUILD_ROOT/sbin
+ln -s /usr/bin/dracut $RPM_BUILD_ROOT/sbin/dracut
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p <lua>
-posix.symlink("../bin/dracut", "%{_sbindir}/dracut")
-posix.symlink("../usr/bin/dracut", "/sbin/dracut")
-return 0
-
%files
%defattr(-,root,root,0755)
%doc README HACKING TODO COPYING AUTHORS NEWS dracut.html dracut.png dracut.svg
%{_bindir}/dracut
-%ghost /sbin/dracut
-%ghost %{_sbindir}/dracut
+# compat symlink
+/sbin/dracut
%if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999
%{_bindir}/mkinitrd
%{_bindir}/lsinitrd