zengxyz / rpms / anaconda

Forked from rpms/anaconda 3 months ago
Clone
Blob Blame History Raw
From 723d1fa54243dc1cba14d0684f4e161251f02fd3 Mon Sep 17 00:00:00 2001
From: Radek Vykydal <rvykydal@redhat.com>
Date: Thu, 3 Jul 2014 13:23:09 +0200
Subject: [PATCH 18/20] rpmostreepayload: create /var/spool/mail required when
 adding user

Resolves: rhbz#1113535
Port of rpmostreepayload patches from master
commit 43ee318334e3c9c91c84323e3c699b77c5b3ad85
---
 pyanaconda/packaging/rpmostreepayload.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/packaging/rpmostreepayload.py b/pyanaconda/packaging/rpmostreepayload.py
index b425ec4..aba85bb 100644
--- a/pyanaconda/packaging/rpmostreepayload.py
+++ b/pyanaconda/packaging/rpmostreepayload.py
@@ -192,7 +192,7 @@ class RPMOSTreePayload(ArchivePayload):
         # get it because that would require mounting the API filesystems in the
         # target.
         for varsubdir in ('home', 'roothome', 'lib/rpm', 'opt', 'srv',
-                          'usrlocal', 'mnt', 'media'):
+                          'usrlocal', 'mnt', 'media', 'spool'):
             self._safeExecWithRedirect("systemd-tmpfiles",
                                        ["--create", "--boot", "--root=" + iutil.getSysroot(),
                                         "--prefix=/var/" + varsubdir])
-- 
1.9.3