forked from rpms/plymouth
Drop default boot-duration
The file was last updated in 2008, which was kind of a while ago. Having files in /var conflicts with the rpm-ostree model of `/var` starting empty. Further, I don't think it makes sense to have a *global* boot duration - it should likely be per-Fedora Edition. So probably we should delete the one in `/usr` as well and have the Edition packages carry it or something.
This commit is contained in:
parent
dbb86a8b97
commit
daa9884553
@ -258,7 +258,6 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
|
|||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
|
||||||
cp $RPM_SOURCE_DIR/boot-duration $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration
|
cp $RPM_SOURCE_DIR/boot-duration $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration
|
||||||
cp $RPM_SOURCE_DIR/boot-duration $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
|
|
||||||
cp -f $RPM_SOURCE_DIR/plymouth-update-initrd $RPM_BUILD_ROOT%{_libexecdir}/plymouth
|
cp -f $RPM_SOURCE_DIR/plymouth-update-initrd $RPM_BUILD_ROOT%{_libexecdir}/plymouth
|
||||||
|
|
||||||
# Add charge, our new default
|
# Add charge, our new default
|
||||||
@ -269,9 +268,6 @@ cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $
|
|||||||
# Drop glow, it's not very Fedora-y
|
# Drop glow, it's not very Fedora-y
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow
|
||||||
|
|
||||||
%post
|
|
||||||
[ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
rm -f %{_libdir}/plymouth/default.so
|
rm -f %{_libdir}/plymouth/default.so
|
||||||
|
Loading…
Reference in New Issue
Block a user