PATH:
usr
/
libexec
#!/bin/bash # import-state: import state files from initramfs (e.g. network config) # Copy state into root folder: # ============================ cd /run/initramfs/state IFS_backup=$IFS IFS=$'\n' # Process find's results line by line dirs_found=$(find . -type d) for dir in $dirs_found; do pushd "$dir" > /dev/null # Remove initial '.' char from the find's result: dest_dir="${dir/\./}" # Create destination folder if it does not exist (with the same rights): if [[ -n "$dest_dir" && ! -d "$dest_dir" ]]; then mkdir -p "$dest_dir" chmod --reference="$PWD" "$dest_dir" chown --reference="$PWD" "$dest_dir" fi # Copy all files that are not directory: find . -mindepth 1 -maxdepth 1 -not -type d -exec cp -av -t "$dest_dir" {} \; > /dev/null popd > /dev/null done IFS=$IFS_backup # Run restorecon on the copied files: # =================================== if [ -e /sys/fs/selinux/enforce ] && [ -x /usr/sbin/restorecon ]; then find . -mindepth 1 -print0 | { cd / && xargs --null restorecon -iF; } fi
[-] nm-dispatcher
[edit]
[+]
os-probes
[-] generate-rndc-key.sh
[edit]
[-] exim.daemon
[edit]
[+]
microcode_ctl
[-] dnf-utils
[edit]
[-] run-with-intensity
[edit]
[+]
kcare
[+]
nfs-utils
[+]
sssd
[+]
openssh
[-] platform-python3.6-config
[edit]
[-] virt-what-cpuid-helper
[edit]
[-] nm-initrd-generator
[edit]
[-] platform-python3.6m-config
[edit]
[+]
initscripts
[-] no-python
[edit]
[-] mlocate-run-updatedb
[edit]
[-] nm-dhcp-helper
[edit]
[-] platform-python3.6m-x86_64-config
[edit]
[-] report-command-error
[edit]
[-] imunify-message-gateway
[edit]
[+]
utempter
[+]
sudo
[+]
dovecot
[-] platform-python3.6
[edit]
[-] loadmodules
[edit]
[-] platform-python
[edit]
[+]
imunify-notifier
[+]
hostname
[+]
mc
[+]
tuned
[+]
..
[+]
selinux
[+]
openldap
[+]
grubby
[-] gpg-protect-tool
[edit]
[+]
awk
[+]
coreutils
[-] platform-python-config
[edit]
[-] scdaemon
[edit]
[-] import-state
[edit]
[+]
dbus-1
[-] gpg-wks-client
[edit]
[+]
man-db
[-] grepconf.sh
[edit]
[-] gpg-preset-passphrase
[edit]
[-] tcawmgr.cgi
[edit]
[-] dirmngr_ldap
[edit]
[-] nfsrahead
[edit]
[+]
os-prober
[+]
p11-kit
[-] gpg-check-pattern
[edit]
[+]
gcc
[+]
installkernel
[+]
smartmontools
[+]
linux-boot-probes
[-] platform-python3.6m
[edit]
[+]
plymouth
[+]
gawk
[-] ebtables
[edit]
[-] audit-functions
[edit]
[+]
getconf
[-] chrony-helper
[edit]
[-] nm-daemon-helper
[edit]