Skip to content

[Feature Request] Option to disable hardware/block device collection (dmidecode/blkid) for LXC environments #151

@magenbrot

Description

@magenbrot

I am running proxsave inside an unprivileged LXC container (with Proxmox Backup Server) on Proxmox. While the backup process works perfectly, the logs are constantly flooded with warnings because the container lacks permission to access low-level hardware information:

WARNING Skipping Block device identifiers (blkid): command blkid failed (exit status 2).
WARNING Skipping Hardware DMI information: command dmidecode failed (exit status 1).

This is expected behavior for secure LXC containers (denied access to /dev/mem and block devices), but it generates unnecessary noise in the logs and notification channels, making it harder to spot real issues.

I would like to see a configuration option in backup.env to explicitly disable these hardware collection steps.

For example:

# Disable hardware inventory collection (useful for LXC/Docker)
COLLECT_HARDWARE_INFO=false

If set to false, proxsave should skip the calls to dmidecode, blkid, sensors, and smartctl entirely, avoiding the warning logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions