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

Johannes Meixner noreply at github.com
Thu Nov 18 15:32:06 CET 2021

  Branch: refs/heads/jsmeix-RAID-overhauled
  Home:   https://github.com/rear/rear
  Commit: dc20466f3185aed08b71174e75a43c81cfae5587
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

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

  Log Message:
  Update 210_raid_layout.sh

Completely overhauled layout/save/GNU/Linux/210_raid_layout.sh
- no longer a subshell that appends all stdout to disklayout.conf
but explicit append to disklayout.conf where needed
to be safe against accidental things written to disklayout.conf
- handle each mdadm option in one place i.e. parse and prepare output
- handle options ordered by importance, mandatory first, then optional ones
- basic tests that mandatory options are syntactically valid plus Error if not

More information about the rear-devel mailing list