]> git.proxmox.com Git - dab.git/commitdiff
mask sys-kernel-config.mount: fails and makes no sense in CT
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 25 Apr 2020 14:54:54 +0000 (16:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 25 Apr 2020 14:54:58 +0000 (16:54 +0200)
If it somehow really makes sense a user can just unmask it again,
this is just setting the default, nothing permanent

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index c8b650a7317d7f679e04791485006ec949600cd3..7604e872ccfde65020eeaff5048e581dc2625440 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -1576,6 +1576,10 @@ EOD
        $filelist .= " $rootdir/etc/sysctl.d/10-network-security.conf";
        $self->run_command ("rm $filelist");
     }
+
+    if (-e "$rootdir/lib/systemd/system/sys-kernel-config.mount") {
+       $self->ve_command ("ln -s /dev/null /etc/systemd/system/sys-kernel-debug.mount");
+    }
 }
 
 sub enter {