Linux ih01.iridiumhosting.com 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
LiteSpeed
Server IP : 67.227.241.211 & Your IP : 216.73.217.87
Domains :
Cant Read [ /etc/named.conf ]
User : dustinhy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
MXB /
rear /
usr /
share /
rear /
restore /
YUM /
default /
Delete
Unzip
Name
Size
Permission
Date
Action
100_mount_YUM_path.sh
140
B
-rw-r--r--
2026-04-01 09:39
400_restore_packages.sh
10.62
KB
-rw-r--r--
2026-04-01 09:39
403_binds_for_selinux.sh
772
B
-rw-r--r--
2026-04-01 09:39
405_recreate_users_and_groups.sh
5.05
KB
-rw-r--r--
2026-04-01 09:39
410_restore_backup.sh
17.24
KB
-rw-r--r--
2026-04-01 09:39
600_restore_selinux_contexts.sh
1.81
KB
-rw-r--r--
2026-04-01 09:39
940_generate_fstab.sh
5
KB
-rw-r--r--
2026-04-01 09:39
950_grub2_mkconfig.sh
2.17
KB
-rw-r--r--
2026-04-01 09:39
950_grub_mkconfig.sh
1.93
KB
-rw-r--r--
2026-04-01 09:39
970_set_root_password.sh
2.14
KB
-rw-r--r--
2026-04-01 09:39
980_initial_network_setup.sh
3.38
KB
-rw-r--r--
2026-04-01 09:39
980_umount_YUM_dir.sh
154
B
-rw-r--r--
2026-04-01 09:39
Save
Rename
# # restore/YUM/default/940_generate_fstab.sh # 940_generate_fstab.sh is a finalisation script (see restore/readme) # that generates etc/fstab in the target system # according to what of the target system is currently mounted. # Generating etc/fstab in the target system is needed as prerequirement # for making a valid initrd via finalize/SUSE_LINUX/i386/170_rebuild_initramfs.sh # otherwise when booting the recreated system the kernel panics # with 'unable to mount root fs' # # Try to care about possible errors # see https://github.com/rear/rear/wiki/Coding-Style set -e -u -o pipefail # Determine system partition and swap partition # from what is in LAYOUT_FILE (usually var/lib/rear/layout/disklayout.conf). local keyword device_node mountpoint filesystem_type junk pushd /dev/disk/by-uuid/ 1>&2 # Ensure file name generation (globbing) is enabled (needed below in 'for uuid in *'): set +f # Write swap entries to etc/fstab in the target system: # Format of swap partitions or swap files in LAYOUT_FILE: # swap <filename> uuid=<uuid> label=<label> # e.g. # swap /dev/sda1 uuid=28e43119-dac1-4426-a71a-1d70b26d33d7 label= while read keyword device_node junk ; do test "$device_node" || Error "No device node in $LAYOUT_FILE for '$keyword [no device node] $junk'" # Do not use a possibly outdated UUID from LAYOUT_FILE but determine the actual one in the current system: uuid=$( for uuid in * ; do readlink -e $uuid | grep -q $device_node && echo $uuid || true ; done ) # If fstab already contains an entry for this swap device, do nothing if grep -Eq "^UUID=$uuid\s+swap" $TARGET_FS_ROOT/etc/fstab || grep -Eq "^$device_node\s+swap" $TARGET_FS_ROOT/etc/fstab ; then LogPrint "Skipping addition of swap device $device_node (UUID=$uuid) - already in etc/fstab of the target system" continue fi # One cannot rely on that swap partitions are in use in the recovery system # so that as fallback the device node is set in etc/fstab in the target system: if test "$uuid" ; then echo "UUID=$uuid swap swap defaults 0 0" >>$TARGET_FS_ROOT/etc/fstab LogPrint "Wrote 'UUID=$uuid swap swap defaults 0 0' to etc/fstab in the target system" else LogPrint "Instead of UUID using plain device node '$device_node' for swap in /etc/fstab as fallback, check $TARGET_FS_ROOT/etc/fstab before rebooting" echo "$device_node swap swap defaults 0 0" >>$TARGET_FS_ROOT/etc/fstab LogPrint "Wrote '$device_node swap swap defaults 0 0' to etc/fstab in the target system" fi done < <( grep "^swap " "$LAYOUT_FILE" ) # Write filesystem entries to etc/fstab in the target system: # Format of filesystem entries in LAYOUT_FILE: # fs <device> <mountpoint> <fstype> [uuid=<uuid>] [label=<label>] [<attributes>] # e.g. # fs /dev/sda2 / ext4 uuid=46d7e8be-7812-49d1-8d24-e25ed0589e94 label= blocksize=4096 ... default_mount_options=user_xattr,acl options=rw,relatime,data=ordered # FIXME: add support for default_mount_options in /etc/fstab (instead of only 'defaults') while read keyword device_node mountpoint filesystem_type junk ; do test "$device_node" || Error "No device node in $LAYOUT_FILE for '$keyword [no device node] $mountpoint $filesystem_type $junk'" test "$mountpoint" || Error "No mountpoint in $LAYOUT_FILE for '$keyword $device_node [no mountpoint] $filesystem_type $junk'" test "$filesystem_type" || Error "No filesystem type in $LAYOUT_FILE for '$keyword $device_node $mountpoint [no filesystem type] $junk'" # Do not use a possibly outdated UUID from LAYOUT_FILE but determine the actual one in the current system: uuid=$( for uuid in * ; do readlink -e $uuid | grep -q $device_node && echo $uuid || true ; done ) # If fstab already contains an entry for this filesystem, do nothing if grep -Eq "^UUID=$uuid\s+$mountpoint" $TARGET_FS_ROOT/etc/fstab || grep -Eq "^$device_node\s+$mountpoint" $TARGET_FS_ROOT/etc/fstab ; then LogPrint "Skipping addition of swap device $device_node (UUID=$uuid) - already in etc/fstab of the target system" continue fi # Regardless that all active filesystems in LAYOUT_FILE should be in use in the recovery system # do not abort but use as fallback the device node is set in etc/fstab in the target system: if test "$uuid" ; then echo "UUID=$uuid $mountpoint $filesystem_type defaults 0 0" >>$TARGET_FS_ROOT/etc/fstab LogPrint "Wrote 'UUID=$uuid $mountpoint $filesystem_type defaults 0 0' to etc/fstab in the target system" else LogPrint "Instead of UUID using plain device node '$device_node' for '$mountpoint' in /etc/fstab as fallback, check $TARGET_FS_ROOT/etc/fstab before rebooting" echo "$device_node $mountpoint $filesystem_type defaults 0 0" >>$TARGET_FS_ROOT/etc/fstab LogPrint "Wrote '$device_node $mountpoint $filesystem_type defaults 0 0' to etc/fstab in the target system" fi done < <( grep "^fs " "$LAYOUT_FILE" ) popd 1>&2 # Restore the ReaR default bash flags and options (see usr/sbin/rear): apply_bash_flags_and_options_commands "$DEFAULT_BASH_FLAGS_AND_OPTIONS_COMMANDS"