Skip to content

Commit

Permalink
[packaging] Fix sourcing of a oneshot. Fixes JB#41427
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed Apr 12, 2018
1 parent b4c4980 commit 191ebd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpm/udisks2.spec
Expand Up @@ -13,6 +13,7 @@ License: GPLv2+
Group: System Environment/Libraries
URL: https://github.com/storaged-project/udisks
Source0: %{name}-%{version}.tar.bz2
Source1: udisks2-symlink-mount-path
Patch1: 0001-Disable-libblockdev-mdraid-and-part-support-from-sou.patch
Patch2: 0002-Drop-smartata-dependencies.patch
Patch3: 0003-Loosen-up-mount-unmount-rights.patch
Expand Down Expand Up @@ -131,7 +132,7 @@ chrpath --delete %{buildroot}/%{_bindir}/udisksctl
chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd

mkdir -p %{buildroot}/%{_oneshotdir}/
install -m 0755 ../rpm/udisks2-symlink-mount-path %{buildroot}/%{_oneshotdir}
install -m 0755 %{SOURCE1} %{buildroot}/%{_oneshotdir}

mkdir -p %{buildroot}/%{_unitdir}/graphical.target.wants
ln -s ../udisks2.service %{buildroot}/%{_unitdir}/graphical.target.wants/udisks2.service
Expand Down

0 comments on commit 191ebd4

Please sign in to comment.