/usr/lib/systemd
NameSizeModeActions
catalog/-0755rm
journald.conf.d/-0755rm
logind.conf.d/-0755rm
network/-0755rm
ntp-units.d/-0755rm
repart/-0755rm
scripts/-0755rm
sleep.conf.d/-0755rm
system/-0755rm
system-environment-generators/-0755rm
system-generators/-0755rm
system-preset/-0755rm
system-shutdown/-0755rm
system-sleep/-0755rm
user/-0755rm
user-environment-generators/-0755rm
user-generators/-0755rm
user-preset/-0755rm
lxd-agent-setup12890755editdlrm
resolv.conf7100644editdlrm
systemd1008160755editdlrm
systemd-backlight352720755editdlrm
systemd-battery-check188880755editdlrm
systemd-binfmt229840755editdlrm
systemd-boot-check-no-failures147920755editdlrm
systemd-bsod229840755editdlrm
systemd-cgroups-agent147120755editdlrm
systemd-cryptsetup808400755editdlrm
systemd-executor1377920755editdlrm
systemd-fsck270080755editdlrm
systemd-fsckd270800755editdlrm
systemd-growfs229840755editdlrm
systemd-hibernate-resume231040755editdlrm
systemd-hostnamed475840755editdlrm
systemd-initctl229840755editdlrm
systemd-integritysetup230560755editdlrm
systemd-journald1936640755editdlrm
systemd-localed557760755editdlrm
systemd-logind2852640755editdlrm
systemd-makefs147120755editdlrm
systemd-measure478800755editdlrm
systemd-modules-load190080755editdlrm
systemd-network-generator434640755editdlrm
systemd-networkd16698640755editdlrm
systemd-networkd-wait-online395360755editdlrm
systemd-pcrextend272720755editdlrm
systemd-pcrlock1379280755editdlrm
systemd-pstore230080755editdlrm
systemd-quotacheck147920755editdlrm
systemd-random-seed270800755editdlrm
systemd-remount-fs188880755editdlrm
systemd-reply-password147120755editdlrm
systemd-resolved5391440755editdlrm
systemd-rfkill229840755editdlrm
systemd-shutdown557600755editdlrm
systemd-sleep475600755editdlrm
systemd-socket-proxyd311840755editdlrm
systemd-storagetm518080755editdlrm
systemd-sulogin-shell188080755editdlrm
systemd-sysctl231040755editdlrm
systemd-sysroot-fstab-check560720755editdlrm
systemd-sysupdate1175920755editdlrm
systemd-sysv-install13600755editdlrm
systemd-time-wait-sync188080755editdlrm
systemd-timedated434880755editdlrm
systemd-tpm2-setup272000755editdlrm
systemd-udevd14436320755editdlrm
systemd-update-done147120755editdlrm
systemd-update-utmp229840755editdlrm
systemd-user-runtime-dir229040755editdlrm
systemd-user-sessions147120755editdlrm
systemd-veritysetup273040755editdlrm
systemd-volatile-root229040755editdlrm
systemd-xdg-autostart-condition147120755editdlrm
Edit: /usr/lib/systemd/lxd-agent-setup (1289B)
#!/bin/sh # # Setup script for lxd-agent that is executed by the lxd-agent systemd unit before lxd-agent is started. # The script sets up a temporary mount point, copies data from the mount (including lxd-agent binary), # and then unmounts it. It also ensures appropriate permissions for the LXD agent's runtime directory. # set -eu PREFIX="/run/lxd_agent" # Functions. mount_virtiofs() { mount -t virtiofs config "${PREFIX}/.mnt" -o ro >/dev/null 2>&1 } mount_9p() { modprobe 9pnet_virtio >/dev/null 2>&1 || true mount -t 9p config "${PREFIX}/.mnt" -o ro,access=0,trans=virtio >/dev/null 2>&1 } fail() { umount -l "${PREFIX}" >/dev/null 2>&1 || true rmdir "${PREFIX}" >/dev/null 2>&1 || true echo "${1}" exit 1 } # Setup the mount target. umount -l "${PREFIX}" >/dev/null 2>&1 || true mkdir -p "${PREFIX}" mount -t tmpfs tmpfs "${PREFIX}" -o mode=0700,nodev,nosuid,noatime,size=50M mkdir -p "${PREFIX}/.mnt" # Try virtiofs first. mount_virtiofs || mount_9p || fail "Couldn't mount virtiofs or 9p, failing." # Copy the data. cp -Ra --no-preserve=ownership "${PREFIX}/.mnt/"* "${PREFIX}" # Unmount the temporary mount. umount "${PREFIX}/.mnt" rmdir "${PREFIX}/.mnt" # Attempt to restore SELinux labels. restorecon -R "${PREFIX}" >/dev/null 2>&1 || true