Skip to content

Commit

Permalink
Make sure pluginconf.d exists (#1271766)
Browse files Browse the repository at this point in the history
If the langpacks package hasn't been included the directory won't exist.
Make sure it does.

Resolves: rhbz#1271766
  • Loading branch information
bcl committed Feb 26, 2016
1 parent f9f2cbf commit 217244f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/post-scripts/80-setfilecons.ks
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
restorecon -ir /etc/sysconfig/network-scripts /var/lib /etc/lvm \
/dev /etc/iscsi /var/lib/iscsi /root /var/lock /var/log \
/etc/modprobe.d /etc/sysconfig /var/cache/yum
/etc/modprobe.d /etc/sysconfig /var/cache/yum /etc/yum
# Also relabel the OSTree variants of the normal mounts (if they exist)
restorecon -ir /var/roothome /var/home /var/opt /var/srv /var/media /var/mnt
Expand Down
1 change: 1 addition & 0 deletions pyanaconda/packaging/yumpayload.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def _writeLangpacksConfig(self):
log.error ("Error setting langpack_locales: %s", msg)

def _copyLangpacksConfigToTarget(self):
iutil.mkdirChain(os.path.dirname(iutil.getSysroot()+_yum_target_langpack_conf))
shutil.copy2(_yum_installer_langpack_conf,
iutil.getSysroot()+_yum_target_langpack_conf)

Expand Down

0 comments on commit 217244f

Please sign in to comment.