[PATCH] installclass: Look for product.img in /run/product, not /tmp

Colin Walters walters at verbum.org
Mon Dec 1 03:39:53 UTC 2014


TL;DR: Unpacking updates content into /tmp cannot have worked since
systemd switched to tmp-on-tmpfs by default.  Use /run instead.

As far as I can tell, the /tmp/product bit was introduced with
https://git.fedorahosted.org/cgit/anaconda.git/commit/?id=459119c94529602d08de465b7ebfa4871d328081

Maybe something was actually using it at the time?  Hard to know.
Even then, I suspect all uses of product.img didn't modify
installclasses.

But currently with Atomic, I need a standalone ISO with different
partitioning defaults.  Thererefore, let's fix this and look in
/run/product, and I'll adjust my product.img to drop installclass data
there.

(But why am I not changing /tmp/updates in this patch too?  Well,
 there are other places that refer to /tmp/{updates,product}, and
 I really don't want to touch all of them just to fix the bug
 that's biting me badly right at this second.)
---
 pyanaconda/installclass.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-installclass-Look-for-product.img-in-run-product-not.patch
Type: text/x-patch
Size: 1805 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20141130/94796ba3/attachment.bin>


More information about the anaconda-patches mailing list