]> git.proxmox.com Git - pve-container.git/commitdiff
drop old 'lxc.id_map' config key support
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 5 Jun 2023 09:51:48 +0000 (11:51 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 5 Jun 2023 09:51:49 +0000 (11:51 +0200)
lxc since v3 only support 'lxc.idmap' now and we don't need
to support this here either anymore

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

index fe1a5cfd51c03dab0fbb9abfb70daf3fffe07cd2..e582a942cc7c657ec8d0644fadc2d8c5dca88437 100644 (file)
@@ -2300,8 +2300,9 @@ sub parse_id_maps {
     my $lxc = $conf->{lxc};
     foreach my $entry (@$lxc) {
        my ($key, $value) = @$entry;
-       # FIXME: remove the 'id_map' variant when lxc-3.0 arrives
-       next if $key ne 'lxc.idmap' && $key ne 'lxc.id_map';
+
+       next if $key ne 'lxc.idmap';
+
        if ($value =~ /^([ug])\s+(\d+)\s+(\d+)\s+(\d+)\s*$/) {
            my ($type, $ct, $host, $length) = ($1, $2, $3, $4);
            push @$id_map, [$type, $ct, $host, $length];