Submit
Path:
~
/
/
lib
/
systemd
/
File Content:
lxd-agent-setup
#!/bin/sh set -eu PREFIX="/run/lxd_agent" # Functions. mount_virtiofs() { mount -t virtiofs config "${PREFIX}/.mnt" >/dev/null 2>&1 } mount_9p() { /sbin/modprobe 9pnet_virtio >/dev/null 2>&1 || true /bin/mount -t 9p config "${PREFIX}/.mnt" -o 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,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 "${PREFIX}/.mnt/"* "${PREFIX}" # Unmount the temporary mount. umount "${PREFIX}/.mnt" rmdir "${PREFIX}/.mnt" # Fix up permissions. chown -R root:root "${PREFIX}"
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
boot
---
0755
catalog
---
0755
logind.conf.d
---
0755
network
---
0755
ntp-units.d
---
0755
system
---
0755
system-environment-generators
---
0755
system-generators
---
0755
system-preset
---
0755
system-shutdown
---
0755
system-sleep
---
0755
user
---
0755
user-environment-generators
---
0755
user-generators
---
0755
user-preset
---
0755
libsystemd-shared-249.so
2840280 bytes
0644
lxd-agent-setup
896 bytes
0755
resolv.conf
710 bytes
0644
systemd
1849992 bytes
0755
systemd-ac-power
14712 bytes
0755
systemd-backlight
31016 bytes
0755
systemd-binfmt
18808 bytes
0755
systemd-bless-boot
31200 bytes
0755
systemd-boot-check-no-failures
14712 bytes
0755
systemd-cgroups-agent
14632 bytes
0755
systemd-cryptsetup
59952 bytes
0755
systemd-fsck
26928 bytes
0755
systemd-fsckd
31096 bytes
0755
systemd-growfs
22904 bytes
0755
systemd-hibernate-resume
14632 bytes
0755
systemd-hostnamed
43408 bytes
0755
systemd-initctl
22904 bytes
0755
systemd-journald
162176 bytes
0755
systemd-localed
51600 bytes
0755
systemd-logind
264712 bytes
0755
systemd-makefs
14632 bytes
0755
systemd-modules-load
18912 bytes
0755
systemd-network-generator
35192 bytes
0755
systemd-networkd
1513936 bytes
0755
systemd-networkd-wait-online
35328 bytes
0755
systemd-pstore
22928 bytes
0755
systemd-quotacheck
14712 bytes
0755
systemd-random-seed
22824 bytes
0755
systemd-remount-fs
14632 bytes
0755
systemd-reply-password
14632 bytes
0755
systemd-resolved
489904 bytes
0755
systemd-rfkill
22904 bytes
0755
systemd-shutdown
47488 bytes
0755
systemd-sleep
27000 bytes
0755
systemd-socket-proxyd
31104 bytes
0755
systemd-sulogin-shell
14632 bytes
0755
systemd-sysctl
23008 bytes
0755
systemd-sysv-install
1360 bytes
0755
systemd-time-wait-sync
14632 bytes
0755
systemd-timedated
47504 bytes
0755
systemd-timesyncd
55520 bytes
0755
systemd-udevd
1131856 bytes
0755
systemd-update-utmp
18808 bytes
0755
systemd-user-runtime-dir
22824 bytes
0755
systemd-user-sessions
14632 bytes
0755
systemd-veritysetup
22936 bytes
0755
systemd-volatile-root
18728 bytes
0755
systemd-xdg-autostart-condition
14632 bytes
0755
N4ST4R_ID | Naxtarrr