remove root device

This commit is contained in:
Tobias Powalowski 2023-01-24 11:01:48 +01:00
parent 4b25ecdafe
commit 9c1a475ec8

View file

@ -202,7 +202,7 @@ _mountpoints() {
_check_mkfs_values
echo "${_DEV}:${_FSTYPE}:${_MP}:${_DOMKFS}:${_LABEL_NAME}:${_FS_OPTIONS}:${_BTRFS_DEVS}:${_BTRFS_LEVEL}:${_BTRFS_SUBVOLUME}:${_BTRFS_COMPRESS}" >>/tmp/.parts
#shellcheck disable=SC2001,SC2086
if ! [[ "${_FSTYPE}" == "btrfs" ]] || [[ -n ${_DEV_ROOT} ]] && _DEVS="$(echo ${_DEVS} | sed -e "s#${_DEV} _##g")"
! [[ "${_FSTYPE}" == "btrfs" ]] || [[ -n ${_DEV_ROOT} ]] && _DEVS="$(echo ${_DEVS} | sed -e "s#${_DEV} _##g")"
fi
_DO_ROOT=""
_DEV_ROOT=""