]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC.pm
format disk: set FS root uid/gid for passed through /dev/ volumes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 13:19:36 +0000 (15:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 13:44:10 +0000 (15:44 +0200)
commit87c458c7d8da83b062a7525afb4131822899f74e
tree0e74c2ced041f953433e47d39b6594a4e4f5aefc
parenteda68a08fda0dd8fe091dad87454ac569c313789
format disk: set FS root uid/gid for passed through /dev/ volumes

When calling mkfs one must pass the root uid/gid parameter along side
as they are used unconditionally, but this wasn't done for the edge
case where a block device from the host was used as volume for the CT,
causing an undef warning.

Note that this code branch is not reachable currently, but that might
change. For now add a FIXME comment to mark this for removal, as we
probably do not want to format devices from /dev/ in any way (and no
user reported that this was broken, so use case seems to be
non-existent).

Fixes: d216e89 ("unprivileged: remove bad chown -R call")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC.pm