Linux s17.hosterpk.com 6.12.0-124.55.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:54:02 EDT 2026 x86_64
LiteSpeed
Server IP : 192.169.89.90 & Your IP : 216.73.217.173
Domains :
Cant Read [ /etc/named.conf ]
User : hamzalar
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
dracut /
modules.d /
99squash-lib /
Delete
Unzip
Name
Size
Permission
Date
Action
init-squash.sh
1.24
KB
-rwxr-xr-x
2025-05-01 10:52
module-setup.sh
2.77
KB
-rwxr-xr-x
2025-05-01 10:52
Save
Rename
#!/usr/bin/bash check() { require_kernel_modules loop overlay || return 1 return 255 } depends() { echo "systemd-initrd" return 0 } squash_get_handler() { local _module _handler local -a _modules=(squash-squashfs squash-erofs) for _module in "${_modules[@]}"; do if dracut_module_included "$_module"; then _handler="$_module" break fi done if [[ -z $_handler ]]; then dfatal "Cannot include squash-lib directly. It requires one of: ${_modules[*]}" return 1 fi echo "$_handler" } squash_install() { local _busybox _dir # verify that there is a valid handler before doing anything squash_get_handler > /dev/null || return 1 _busybox=$(find_binary busybox) # Create mount points for squash loader and basic directories mkdir -p "$initdir"/squash for _dir in squash usr/bin usr/sbin usr/lib; do mkdir -p "$squashdir/$_dir" [[ $_dir == usr/* ]] && ln_r "/$_dir" "${_dir#usr}" done # Install required modules and binaries for the squash image init script. if [[ $_busybox ]]; then module_install "busybox" else DRACUT_RESOLVE_DEPS=1 inst_multiple sh mount modprobe mkdir switch_root grep umount # libpthread workaround: pthread_cancel wants to dlopen libgcc_s.so inst_libdir_file -o "libgcc_s.so*" # FIPS workaround for Fedora/RHEL: libcrypto needs libssl when FIPS is enabled [[ $DRACUT_FIPS_MODE ]] && inst_libdir_file -o "libssl.so*" fi hostonly="" instmods "loop" "overlay" dracut_kernel_post # Install squash image init script. inst_simple "$moddir"/init-squash.sh /init # make sure that library links are correct and up to date for squash loader build_ld_cache } squash_installpost() { local _file _handler # this shouldn't happen but... # ...better safe than deleting your rootfs if [[ -z $initdir ]]; then #shellcheck disable=SC2016 dfatal '$initdir not set. Something went terribly wrong.' exit 1 fi _handler=$(squash_get_handler) [[ -n $_handler ]] || return 1 DRACUT_SQUASH_POST_INST=1 module_install "$_handler" # Rescue the dracut spec files so dracut rebuild and lsinitrd can work for _file in "$initdir"/usr/lib/dracut/*; do [[ -f $_file ]] || continue DRACUT_RESOLVE_DEPS=1 dstdir=$squashdir inst "$_file" "${_file#"$initdir"}" done # Remove everything that got squashed into the image for _file in "$initdir"/*; do [[ $_file == "$squashdir" ]] && continue rm -rf "$_file" done mv "$squashdir"/* "$initdir" } install() { if [[ $DRACUT_SQUASH_POST_INST ]]; then squash_installpost else dstdir="$squashdir" squash_install fi }