]> git.proxmox.com Git - pve-container.git/commit
protected_call: remove left-over rootdir/dev mkdir
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Sep 2020 17:31:51 +0000 (19:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Sep 2020 18:54:57 +0000 (20:54 +0200)
commit229ab7fa285b6f4726b03079d9141e5bbb22058f
treefa7aa8859f9002ccae27bdd4c2f53f6b1f9adc18
parentcc9967d2b11758fc4a1eb5877684929ebff60420
protected_call: remove left-over rootdir/dev mkdir

commit 797e12e8a5df246d8afc53b045e632977cdf0088 got rid of our "just
bind-mount the root /dev to the CT temporarily for some stuff" for
good a while ago (2015), but creating the /dev directory in the CT
root was kept, from what I can tell, by mistake.

This can be a problem if, whyever, the CT rootfs is not mounted, as
we then break a future mount as we create this /dev directory inside
what would be the CTs rootfs mount point. It is then not empty
anymore and a normal mount cannot happen, failing with "directory is
not empty"

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