#1771 Issue closed: Try to implement to exclude partitions between other partitions on a disk

Labels: enhancement, won't fix / can't fix / obsolete

jsmeix opened issue at 2018-04-09 14:08:

  • ReaR version ("/usr/sbin/rear -V"):
    Current master code

  • Brief description of the issue:

It seems currently it is not possible to exclude a partition between other partitions
because currently when one excludes a partition also all other partitions
on the same disk get automatically also excluded by that code in
usr/share/rear/layout/save/default/330_remove_exclusions.sh

        part)
            ### find the immediate parent
            name=$(grep "^$name " "$LAYOUT_DEPS" | cut -d " " -f 2)
            remove_component "$type" "$name"
            ;;

cf. https://github.com/rear/rear/issues/1767#issuecomment-379758551
As a side note see the mentioned bug therein because currently only
all other partitions on the disk will be also automatically excluded
but neither their affected filesystems nor swap entries
which results an inconsistent disklayout.conf file, cf.
"I want to always have all values perfectly right in disklayout.conf" in
https://github.com/rear/rear/pull/1733#issuecomment-366436113

I guess all other partitions on the disk must be also automatically excluded
because somehow "rear recover" may fail when it should skip only the
excluded partitions but still recreate the other partitions on a disk.

I guess a reason behind is how the create_partitions() function works in
usr/share/rear/layout/prepare/GNU/Linux/100_include_partition_code.sh

I think this issue here is related to other general cleanup work
that is(was) needed in the partitioning layout code in ReaR like
https://github.com/rear/rear/issues/1731
and
https://github.com/rear/rear/issues/1750

jsmeix commented at 2020-03-06 13:54:

Because there is zero user request for such a functionality
I won't implement it.


[Export of Github issue for rear/rear.]