#2618 PR merged: Treat RAID layout value '-unknown-' same as an empty value

Labels: bug, fixed / solved / done

jsmeix opened issue at 2021-05-21 10:02:

  • Type: Bug Fix

  • Impact: Normal

  • Reference to related issue (URL):
    https://github.com/rear/rear/issues/2616

  • How was this pull request tested?
    Not at all tested by me.

  • Brief description of the changes in this pull request:

In layout/save/GNU/Linux/210_raid_layout.sh
treat the RAID layout value '-unknown-' same as an empty value
to avoid that layout/prepare/GNU/Linux/120_include_raid_code.sh
will create a 'mdadm' command in diskrestore.sh like
"mdadm ... --layout=-unknown- ..."
which would fail during "rear recover" with something like
"mdadm: layout -unknown- not understood for raid0"

jsmeix commented at 2021-05-21 10:03:

@cvijayvinoth
please test if the change in this pull request makes things work for you

jsmeix commented at 2021-07-12 07:48:

According to
https://github.com/rear/rear/issues/2616#issuecomment-876422496
the change in this pull request makes things work
so I would like to merge this pull request
tomorrow afternoon unless there are objections


[Export of Github issue for rear/rear.]