F #5228: control access to lxc storageutils cmds (#956)

This commit is contained in:
Christian González authored and GitHub committed 2021-03-12 11:04:58 +01:00
1 parent 0b587ba279
commit d22d34da4e
1 file changed
+3 -4
@@ -34,16 +34,15 @@ module Storage
:umount => "#{PRE}umount",
:lsblk => 'lsblk',
:mkdir => 'mkdir -p',
:su_mkdir => "#{PRE}mkdir -p",
:cat => 'cat',
:file => 'file -L -s',
:blkid => "#{PRE}blkid",
:e2fsck => "#{PRE}e2fsck",
:resize2fs => "#{PRE}resize2fs",
:xfs_growfs => "#{PRE}xfs_growfs",
:bind => "#{PRE} bindfs" # TODO, allow customize offset
}
private_constant :COMMANDS
private_constant :PRE
def self.setup_disk(device, mountpoint, bindpoint, options)
begin
# Get device filesystem (e.g ext4, xfs, ...)