]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
no blkid for mmcblk[0-9]boot[0-9]
authorAlan Perry <alanp@snowmoose.com>
Sat, 13 Feb 2021 03:08:28 +0000 (19:08 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Feb 2021 09:38:29 +0000 (10:38 +0100)
Don't run blkid on mmcblk[0-9]boot[0-9] devices because they contain
bootloaders or boot parameters, and not partitions or file systems.

rules.d/60-persistent-storage.rules

index 35b4f2c6dc54cf0fff1e901ad5a4ebd8657f5811..50b357f8df9e84418c68014a0a10fc00ecbcd894 100644 (file)
@@ -110,7 +110,7 @@ KERNEL=="sr*", ENV{DISK_EJECT_REQUEST}!="?*", ENV{ID_CDROM_MEDIA_TRACK_COUNT_DAT
   IMPORT{builtin}="blkid --noraid"
 
 # probe filesystem metadata of disks
-KERNEL!="sr*", IMPORT{builtin}="blkid"
+KERNEL!="sr*|mmcblk[0-9]boot[0-9]", IMPORT{builtin}="blkid"
 
 # by-label/by-uuid links (filesystem metadata)
 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"