On my side I'm trying to install OMV inside an LXC container on my Turris Omnia router with 2 SATA HDD that I want to dedicate to OMV.
I started with a Debian Buster container.
I have managed to expose the two block devices inside the container.
I'm stuck during installation of OMV because of what seems a stupid issue:
Code
Updating service units ...
Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory
dpkg: error processing package openmediavault (--configure):
installed openmediavault package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nas:~#
I tracked it down to this line :
https://github.com/openmediava…nmediavault.postinst#L124
which fails because systemd-netword is masked in the container :
Code
root@nas:~# systemctl status systemd-networkd
● systemd-networkd.service
Loaded: masked (Reason: Unit systemd-networkd.service is masked.)
Active: inactive (dead)
which comes from the default Debian LXC images : https://github.com/lxc/lxc-ci/…/images/debian.yaml#L1023
Does OMV really need this service ? Do you know any way I can bypass this ?
Maybe at least trick OMV by replacing it by a no-op unit ?