apply_layout_mappings function is not sufficiently fail safe #1845
Labels
cleanup
enhancement
Adaptions and new features
fixed / solved / done
minor bug
An alternative or workaround exists
Milestone
The current apply_layout_mappings function is not sufficiently fail safe.
In particular things go wrong when for a target disk in /var/lib/rear/layout/disk_mappings
no associated mapping for that disk as source disk exists.
For example when I have /dev/sda and /dev/sdb both with same size
I get /var/lib/rear/layout/disk_mappings generated as
When I change that to
I get disklayout.conf changed into (excerpts):
Furthermore the current apply_layout_mappings function runs mad if
there are lines with unexpected syntax in /var/lib/rear/layout/disk_mappings
in particular if there are empty lines.
Because in MIGRATION_MODE /var/lib/rear/layout/disk_mappings is meant
to be manually adapted by the user ReaR should behave more fail safe against
possibly missing or wrong entries in /var/lib/rear/layout/disk_mappings.
Currently ReaR blindly proceeds in such cases.
The text was updated successfully, but these errors were encountered: