]> git.proxmox.com Git - pve-container.git/commit
setup: heuristically warn if the FS hosting /etc is not mounted
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Sep 2020 18:02:25 +0000 (20:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Sep 2020 18:54:57 +0000 (20:54 +0200)
commitf9955be7748b7f481f858a627292b9293234a385
tree683b795e42734358d4afed08fcb4e75db46da96b
parent264755b810515ff359f8fd5c389113d9b905fe19
setup: heuristically warn if the FS hosting /etc is not mounted

Check for the existence of /etc, use -e as it could also be a symlink
(and it's just a heuristic). But only do so if the expected ostype
from the config does not match the detected one, this normally
indicates that we had a "reals" distro running but detected the
fallback "unmanaged". Only warn though, as a hint for the user.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup.pm