X7ROOT File Manager
Current Path:
/usr/lib/systemd
usr
/
lib
/
systemd
/
📁
..
📁
catalog
📄
import-pubring.gpg
(9.33 KB)
📁
ntp-units.d
📄
rhel-autorelabel
(2.31 KB)
📄
rhel-configure
(399 B)
📄
rhel-dmesg
(110 B)
📄
rhel-domainname
(158 B)
📄
rhel-import-state
(1.03 KB)
📄
rhel-loadmodules
(233 B)
📄
rhel-readonly
(5.77 KB)
📁
scripts
📁
system
📁
system-generators
📁
system-preset
📁
system-shutdown
📁
system-sleep
📄
systemd
(1.56 MB)
📄
systemd-ac-power
(23.41 KB)
📄
systemd-activate
(68.52 KB)
📄
systemd-backlight
(73.02 KB)
📄
systemd-binfmt
(60.73 KB)
📄
systemd-bootchart
(125.05 KB)
📄
systemd-cgroups-agent
(35.91 KB)
📄
systemd-coredump
(129.86 KB)
📄
systemd-cryptsetup
(101.28 KB)
📄
systemd-fsck
(331.23 KB)
📄
systemd-hibernate-resume
(39.95 KB)
📄
systemd-hostnamed
(367.16 KB)
📄
systemd-importd
(367.75 KB)
📄
systemd-initctl
(309.84 KB)
📄
systemd-journald
(338.05 KB)
📄
systemd-localed
(375.22 KB)
📄
systemd-logind
(624.84 KB)
📄
systemd-machine-id-commit
(52.19 KB)
📄
systemd-machined
(482.01 KB)
📄
systemd-modules-load
(64.8 KB)
📄
systemd-pull
(183.14 KB)
📄
systemd-quotacheck
(43.96 KB)
📄
systemd-random-seed
(48.13 KB)
📄
systemd-readahead
(97.51 KB)
📄
systemd-remount-fs
(56.52 KB)
📄
systemd-reply-password
(35.93 KB)
📄
systemd-rfkill
(60.74 KB)
📄
systemd-shutdown
(146.76 KB)
📄
systemd-shutdownd
(64.52 KB)
📄
systemd-sleep
(89.16 KB)
📄
systemd-socket-proxyd
(105.52 KB)
📄
systemd-sysctl
(64.83 KB)
📄
systemd-sysv-install
(40.22 KB)
📄
systemd-timedated
(375.91 KB)
📄
systemd-udevd
(406.45 KB)
📄
systemd-update-done
(44.07 KB)
📄
systemd-update-utmp
(309.87 KB)
📄
systemd-user-sessions
(44.16 KB)
📄
systemd-vconsole-setup
(52.2 KB)
📁
user
📁
user-generators
📁
user-preset
Editing: rhel-autorelabel
#!/bin/bash # # Do automatic relabelling # . /etc/init.d/functions # If the user has this (or similar) UEFI boot order: # # Windows | grub | Linux # # And decides to boot into grub/Linux, then the reboot at the end of autorelabel # would cause the system to boot into Windows again, if the autorelabel was run. # # This function restores the UEFI boot order, so the user will boot into the # previously set (and expected) partition. efi_set_boot_next() { # NOTE: The [ -x /usr/sbin/efibootmgr ] test is not sufficent -- it could # succeed even on system which is not EFI-enabled... if ! efibootmgr > /dev/null 2>&1; then return fi # NOTE: It it possible that some other services might be setting the # 'BootNext' item for any reasons, and we shouldn't override it if so. if ! efibootmgr | grep --quiet -e 'BootNext'; then CURRENT_BOOT="$(efibootmgr | grep -e 'BootCurrent' | sed -re 's/(^.+:[[:space:]]*)([[:xdigit:]]+)/\2/')" efibootmgr -n "${CURRENT_BOOT}" > /dev/null 2>&1 fi } relabel_selinux() { # if /sbin/init is not labeled correctly this process is running in the # wrong context, so a reboot will be required after relabel AUTORELABEL= . /etc/selinux/config echo "0" > /sys/fs/selinux/enforce [ -x /bin/plymouth ] && plymouth --hide-splash if [ "$AUTORELABEL" = "0" ]; then echo echo $"*** Warning -- SELinux ${SELINUXTYPE} policy relabel is required. " echo $"*** /etc/selinux/config indicates you want to manually fix labeling" echo $"*** problems. Dropping you to a shell; the system will reboot" echo $"*** when you leave the shell." sulogin else echo echo $"*** Warning -- SELinux ${SELINUXTYPE} policy relabel is required." echo $"*** Relabeling could take a very long time, depending on file" echo $"*** system size and speed of hard drives." FORCE=`cat /.autorelabel` [ -x "/usr/sbin/quotaoff" ] && /usr/sbin/quotaoff -aug /sbin/fixfiles $FORCE restore > /dev/null 2>&1 fi rm -f /.autorelabel /usr/lib/dracut/dracut-initramfs-restore efi_set_boot_next sync systemctl --force reboot } # Check to see if a full relabel is needed if [ "$READONLY" != "yes" ]; then restorecon $(awk '!/^#/ && $4 !~ /noauto/ && $2 ~ /^\// { print $2 }' /etc/fstab) >/dev/null 2>&1 relabel_selinux fi
Upload File
Create Folder