From 8b2c0407dc2682cbb01051a68d957cfae7bfd253 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 23 May 2024 19:08:12 +0200 Subject: [PATCH] remove bcachefs multi devices in mounting mode --- usr/lib/archboot/installer/mountpoints.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr/lib/archboot/installer/mountpoints.sh b/usr/lib/archboot/installer/mountpoints.sh index 713ebb88f..63797134b 100644 --- a/usr/lib/archboot/installer/mountpoints.sh +++ b/usr/lib/archboot/installer/mountpoints.sh @@ -355,6 +355,13 @@ _mountpoints() { echo "${_DEV}|${_FSTYPE}|${_MP}|${_DOMKFS}|${_LABEL_NAME}|${_FS_OPTIONS}|${_BTRFS_DEVS}|${_BTRFS_LEVEL}|${_BTRFS_SUBVOLUME}|${_BTRFS_COMPRESS}" >>/tmp/.parts 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 [[ -z ${_DOMKFS} ]]; then + _BCFS_UUID="$(${_LSBLK} UUID -d "${_DEV}")" + for i in $({_LSBLK} NAME,SIZE -d "${_DEV}" | grep ${_BCFS_UUID} | cut -d ' ' -f1); do + _DEVS="${_DEVS//${i} _/}" + done + fi else echo "${_DEV}|${_FSTYPE}|${_MP}|${_DOMKFS}|${_LABEL_NAME}|${_FS_OPTIONS}" >>/tmp/.parts fi