[PATCH] rpmostreepayload: Precreate /var/lib/rpm -> /usr/share/rpm

Vratislav Podzimek vpodzime at redhat.com
Fri May 16 06:50:30 UTC 2014


On Thu, 2014-05-15 at 17:46 +0000, Colin Walters wrote:
> > Anyways yeah...probably best to try to fix this while the iron is 
> > hot.  Working on it.
> 
> New patch inline + attached, this seems to work well.
> 
>  From 45972767e9e5073aaf2329acf7c7474cc425bf39 Mon Sep 17 00:00:00 2001
>  From: Colin Walters <walters at verbum.org>
> Date: Thu, 15 May 2014 07:44:18 -0400
> Subject: [PATCH] rpmostreepayload: Use systemd-tmpfiles rather than
>  handrolling mkdir
> 
> I hit an issue where something in Anaconda may invoke a program or
> library which uses rpm, and because the OSTree model has /var/lib/rpm
> -> /usr/share/rpm, but that's created during boot, I'd end up with a
> new empty rpmdb in /var/lib.
> 
> Fix this by switching to running systemd-tmpfiles on the target root
> *only* for the directories we'll need at install time. For example,
> we don't need /var/spool/abrt until the target is running, so don't
> try to create it.
This looks good to me, it just needs some whitespace changes. Applying,
tweaking and pushing.

-- 
Vratislav Podzimek

Anaconda Rider | RHCE | Red Hat, Inc. | Brno - Czech Republic




More information about the anaconda-patches mailing list