[rear-devel] [rear/rear] 6051fa: Update 210_raid_layout.sh

Johannes Meixner noreply at github.com
Tue Jul 13 13:35:05 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 6051fa6a0949c2d2ca4e3a7f37a561d6a68c559f
      https://github.com/rear/rear/commit/6051fa6a0949c2d2ca4e3a7f37a561d6a68c559f
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M usr/share/rear/layout/save/GNU/Linux/210_raid_layout.sh

  Log Message:
  -----------
  Update 210_raid_layout.sh

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"
see https://github.com/rear/rear/issues/2616


  Commit: 44dcfc118fc392027c43246c8a28a2ff5973b5d3
      https://github.com/rear/rear/commit/44dcfc118fc392027c43246c8a28a2ff5973b5d3
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M usr/share/rear/layout/save/GNU/Linux/210_raid_layout.sh

  Log Message:
  -----------
  Merge pull request #2618 from rear/jsmeix-handle-RAID-layout-unknown

Treat RAID layout value '-unknown-' same as an empty value:
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",
see https://github.com/rear/rear/issues/2616


Compare: https://github.com/rear/rear/compare/8df9eb7355c9...44dcfc118fc3


More information about the rear-devel mailing list