mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
allow degraded raid
This commit is contained in:
parent
e3a6ce5ade
commit
dc3d024fef
1 changed files with 4 additions and 2 deletions
|
@ -460,8 +460,10 @@ _createmd()
|
|||
echo "${_DEV}" >>/tmp/.raid
|
||||
while true; do
|
||||
_RAIDNUMBER=$((_RAIDNUMBER + 1))
|
||||
if [[ -n ${_DEV} ]]; then
|
||||
# clean loop from used partition and options
|
||||
_DEVS="$(echo "${_DEVS}" | sed -e "s#$(${_LSBLK} NAME,SIZE -d "${_DEV}" 2>"${_NO_LOG}")##g")"
|
||||
fi
|
||||
# add more devices
|
||||
# raid0 doesn't support missing devices
|
||||
if [[ "${_LEVEL}" == "raid0" || "${_LEVEL}" == "linear" ]]; then
|
||||
|
|
Loading…
Reference in a new issue