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

Johannes Meixner noreply at github.com
Fri May 21 12:00:35 CEST 2021


  Branch: refs/heads/jsmeix-handle-RAID-layout-unknown
  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




More information about the rear-devel mailing list