# Install the image's enforced Defender settings each time Defender starts. # The image can't ship them in /etc directly: mdatp-firstboot creates # /etc/opt/microsoft/mdatp on the device, so on updates that directory counts # as local and ostree's /etc merge never adds new files under it. Copying on # every start also picks up changes from newer images and undoes local edits. [Service] ExecStartPre=+/usr/bin/install -D -Z -m 0644 /usr/share/mdatp-managed/mdatp_managed.json /etc/opt/microsoft/mdatp/managed/mdatp_managed.json