]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC/Setup/Base.pm
fix #1844: check /etc/.pve-ignore.hosts early
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 20 Jul 2018 06:49:21 +0000 (08:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Jul 2018 07:00:27 +0000 (09:00 +0200)
commit1b3cffda573afce8585934b32aa75f1babdea79b
treedee641fda050fff5e34a24bc14845c236eef1166
parent84f1be680846f4fcd301c7c395b721ec3cd25c80
fix #1844: check /etc/.pve-ignore.hosts early

Our checks for .pve-ignore.* files happen at write time so
we mostly don't have to think about them within the
functions dealing with them. /etc/hosts is one of the files
we need nowhere except when updating it, and there are some
tools managing it and producing files too large for our
default file_get_contents() size limit, so here we want to
skip early to avoid an error at read time.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Setup/Base.pm