����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# In migration mode apply the disk layout mappings to disklayout.conf
# and related files that are also used to migrate the disk layout
# cf. https://github.com/rear/rear/issues/2181
# Skip if not in migration mode:
is_true "$MIGRATION_MODE" || return 0
local original_disk_space_usage_file="$VAR_DIR/layout/config/df.txt"
local rescue_config_file="/etc/rear/rescue.conf"
local applied_mappings_to_all_files="yes"
local file_to_migrate=""
for file_to_migrate in "$LAYOUT_FILE" "$original_disk_space_usage_file" "$rescue_config_file" ; do
# Skip if file_to_migrate does not exist or is empty (e.g. original_disk_space_usage_file may not exist):
test -s "$file_to_migrate" || continue
if apply_layout_mappings "$file_to_migrate" ; then
DebugPrint "Applied disk layout mappings to $file_to_migrate"
else
LogPrintError "Failed to apply disk layout mappings to $file_to_migrate"
applied_mappings_to_all_files="no"
fi
done
is_true $applied_mappings_to_all_files || Error "Failed to apply disk layout mappings"
# The rescue_config_file '/etc/rear/rescue.conf' may have contained a line like
# (cf. usr/share/rear/layout/save/GNU/Linux/230_filesystem_layout.sh):
# BTRFS_SUBVOLUME_SLES_SETUP=( /dev/sda2 )
# that is now changed (e.g. because of a mapping from /dev/sda to /dev/sdb) to
# BTRFS_SUBVOLUME_SLES_SETUP=( /dev/sdb2 )
# but /etc/rear/rescue.conf was already read by /etc/scripts/system-setup
# so that this changed variable must now be read again from /etc/rear/rescue.conf
# but we do not source the whole /etc/rear/rescue.conf again to be on the safe side
# perhaps some is not idempotent like "array+=( new elements )"
# or other variables in /etc/rear/rescue.conf may have been changed
# so we only re-read the BTRFS_SUBVOLUME_SLES_SETUP variable:
eval $( grep '^BTRFS_SUBVOLUME_SLES_SETUP=' "$rescue_config_file" )
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 010_prepare_files.sh | File | 2.18 KB | 0644 |
|
| 250_compare_disks.sh | File | 13 KB | 0644 |
|
| 270_overrule_migration_mode.sh | File | 1.2 KB | 0644 |
|
| 300_map_disks.sh | File | 22.12 KB | 0644 |
|
| 310_remove_exclusions.sh | File | 4.08 KB | 0644 |
|
| 320_apply_mappings.sh | File | 1.83 KB | 0644 |
|
| 500_confirm_layout_file.sh | File | 2.35 KB | 0644 |
|
| 510_list_dependencies.sh | File | 103 B | 0644 |
|
| 520_exclude_components.sh | File | 607 B | 0644 |
|
| 540_generate_device_code.sh | File | 1.89 KB | 0644 |
|
| 550_finalize_script.sh | File | 121 B | 0644 |
|
| 600_show_unprocessed.sh | File | 3.15 KB | 0644 |
|