]> git.proxmox.com Git - pve-container.git/commit
OpenSUSE support added
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 1 Dec 2015 14:53:48 +0000 (15:53 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 2 Dec 2015 10:03:01 +0000 (11:03 +0100)
commitfa7cb12b3960bf4c02ec270499c429ec03471b03
tree77da8afcc0d76f47744e0798be95e7d71bdd10e2
parent9c23d5679cc46311125f42b6c720bab47dc1a0b5
OpenSUSE support added

* Detection via /etc/SuSE-brand
* Currently only supporting version 13.1 (This apparently
ships no systemd-networkd and has no wicked yet.)
* Introduced ct_modify_file_head_portion: Both Redhat and
SuSE have separate route files for network interfaces, but
with a different formats. For consistency the SuSE code also
only changes routes between the BEGIN/END PVE comment lines.
This version also fixes a bug where the route file got
deleted instead of left untouched when no changes were made
(now caught by a testcase).
37 files changed:
src/PVE/LXC.pm
src/PVE/LXC/Setup.pm
src/PVE/LXC/Setup/Base.pm
src/PVE/LXC/Setup/Makefile
src/PVE/LXC/Setup/Redhat.pm
src/PVE/LXC/Setup/SUSE.pm [new file with mode: 0644]
src/test/run_tests.pl
src/test/test-opensuse-001/config [new file with mode: 0644]
src/test/test-opensuse-001/etc/SuSE-brand [new file with mode: 0644]
src/test/test-opensuse-001/etc/hosts.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/resolv.conf.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/securetty [new file with mode: 0644]
src/test/test-opensuse-001/etc/securetty.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth0.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth1.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth2.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth3.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/sysconfig/network/ifroute-eth0.exp [new file with mode: 0644]
src/test/test-opensuse-001/etc/sysconfig/network/ifroute-eth1 [new file with mode: 0644]
src/test/test-opensuse-001/etc/sysconfig/network/ifroute-eth1.exp [new file with mode: 0644]
src/test/test-opensuse-002/config [new file with mode: 0644]
src/test/test-opensuse-002/etc/SuSE-brand [new file with mode: 0644]
src/test/test-opensuse-002/etc/securetty [new file with mode: 0644]
src/test/test-opensuse-002/etc/securetty.exp [new file with mode: 0644]
src/test/test-opensuse-002/etc/sysconfig/network/ifcfg-eth0.exp [new file with mode: 0644]
src/test/test-opensuse-002/etc/sysconfig/network/ifcfg-eth1.exp [new file with mode: 0644]
src/test/test-opensuse-002/etc/sysconfig/network/ifcfg-eth2.exp [new file with mode: 0644]
src/test/test-opensuse-002/etc/sysconfig/network/ifroute-eth0.exp [new file with mode: 0644]
src/test/test-opensuse-003/config [new file with mode: 0644]
src/test/test-opensuse-003/etc/SuSE-brand [new file with mode: 0644]
src/test/test-opensuse-003/etc/securetty [new file with mode: 0644]
src/test/test-opensuse-003/etc/securetty.exp [new file with mode: 0644]
src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth0.exp [new file with mode: 0644]
src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth1.exp [new file with mode: 0644]
src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth2.exp [new file with mode: 0644]
src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth3.exp [new file with mode: 0644]
src/test/test-opensuse-003/etc/sysconfig/network/ifroute-eth0.exp [new file with mode: 0644]