remove bcachefs multi devices in mounting mode

This commit is contained in:
Tobias Powalowski 2024-05-23 19:58:39 +02:00
parent 7fc8b56f94
commit 0f0a2c7704

View file

@ -356,7 +356,7 @@ _mountpoints() {
elif [[ "${_FSTYPE}" == "bcachefs" ]]; then
echo "${_DEV}|${_FSTYPE}|${_MP}|${_DOMKFS}|${_LABEL_NAME}|${_FS_OPTIONS}|${_BCFS_DEVS}|${_BCFS_COMPRESS}" >>/tmp/.parts
# remove parts of multi devices
if [[ -n "${_SKIP_FILESYSTEM}" ]]; then
if [[ -z "${_CREATE_MOUNTPOINTS}" ]]; then
_BCFS_UUID="$(${_LSBLK} UUID -d "${_DEV}")"
for i in $(${_LSBLK} NAME,UUID | grep ${_BCFS_UUID} | cut -d ' ' -f 1); do
_DEVS="${_DEVS//$(${_LSBLK} NAME,SIZE -d "${i}" 2>"${_NO_LOG}")/}"