Bug 1456010

Summary: [PATCH] Drop default boot-duration
Product: [Fedora] Fedora Reporter: Colin Walters <walters>
Component: plymouthAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: elad, fedora, hdegoede, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-06 17:05:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1456012    

Description Colin Walters 2017-05-26 16:46:07 UTC
From 9d10385977cb5c4d03ca8488176a86150ec2d5ed Mon Sep 17 00:00:00 2001
From: Colin Walters <walters>
Date: Fri, 26 May 2017 12:42:44 -0400
Subject: [PATCH] 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.
---
 plymouth.spec | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/plymouth.spec b/plymouth.spec
index 5baf3ab..c84e37a 100644
--- a/plymouth.spec
+++ b/plymouth.spec
@@ -251,7 +251,6 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
 
 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%{_localstatedir}/lib/plymouth
 cp -f $RPM_SOURCE_DIR/plymouth-update-initrd $RPM_BUILD_ROOT%{_libexecdir}/plymouth
 
 # Add charge, our new default
@@ -262,9 +261,6 @@ cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $
 # Drop glow, it's not very Fedora-y
 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
 if [ $1 -eq 0 ]; then
     rm -f %{_libdir}/plymouth/default.so
-- 
2.9.4

Comment 1 Jan Kurik 2017-08-15 08:14:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 2 Hans de Goede 2018-08-06 17:05:33 UTC
Thank you for the bug report and the patch, this is fixed in plymouth-0.9.3-13.fc29, closing.