]> git.proxmox.com Git - pve-container.git/commit
use /etc/os-release
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 1 Aug 2017 09:28:55 +0000 (11:28 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 2 Aug 2017 07:46:47 +0000 (09:46 +0200)
commit153747ff1df83c0d4fb7fe3dc2fd21e85ff7c5db
treebc942b95395e5acfd5f6e70e858b0acb3a801ab7
parentb012f0223fa52b7562ac97529ee669020aac8f61
use /etc/os-release

This should exist everywhere, its content look like shell
assignments but are limited enough to not require a shell to
parse (see os-release(5) or its parts pasted as a comment to
the parse function).
Further motivation for this is the fact that in suse the
/etc/SuSE-release file is declared deprecated in favor of
/etc/os-release.
Note that we have to read the file in a protected_call to
avoid symlink issues.

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