From 77afe63bc51ebe09ebdbbee42c9514a7ca5b94d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S?= Date: Tue, 12 Feb 2019 12:10:42 +0100 Subject: [PATCH] IS_DUPLICATE_FS_LABEL: Exclude EFI_SYSPART EFI_SYSPART is (and should be) on all disks when using soft raid. --- evocheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 4364a2a..4e689b8 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -774,7 +774,9 @@ if [ -e /etc/debian_version ]; then # Do it only if thereis blkid binary if [ -x "$(which blkid)" ]; then tmpFile=$(mktemp -p /tmp) - for part in $(blkid | grep -v raid_member | grep -Eo ' LABEL=".*"' | cut -d'"' -f2); do + parts=$(blkid | grep -ve raid_member -e EFI_SYSPART \ + | grep -Eo ' LABEL=".*"' | cut -d'"' -f2) + for part in $parts; do echo "$part" >> "$tmpFile" done tmpOutput=$(sort < "$tmpFile" | uniq -d)