Bug 1408530

Summary: Unable to install cronie-anacron package
Product: [Fedora] Fedora Reporter: J. Sastre <jsastreh>
Component: cronieAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: adimania, amurdaca, dustymabe, dwalsh, lsm5, mmaslano, tmraz, walters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cronie-1.5.1-4.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-14 16:59:18 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: 1352154    

Description J. Sastre 2016-12-24 10:16:31 UTC
Description of problem:

cronie-anacron package install fails on fedora-atomic-25

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. sudo rpm-ostree install cronie-anacron


Actual results:
	"Running %post for cronie-anacron...... error: Running %post for cronie-anacron: Executing bwrap: Child process exited with code 1"


Expected results:


Additional info:
journalctl -xe
	rpm-ostreed[2363]: touch: cannot touch '/var/spool/anacron/cron.daily': Read-only file system
	rpm-ostreed[2363]: touch: cannot touch '/var/spool/anacron/cron.weekly': Read-only file system
	rpm-ostreed[2363]: touch: cannot touch '/var/spool/anacron/cron.monthly': Read-only file system

Comment 1 Colin Walters 2016-12-24 12:12:54 UTC
To be compatible with the ostree model, cronie should support an empty /var, and the daemon should create those files while it's running.  Basically treat ENOENT as equivalent to an empty file.