Before I report bug, I'd like to consult if I understand openwrt fstools correctly.
I'm in a process of improving encrypted volumes on raid on openwrt and in my process of analysing of openwrt/fstools internals I stumbled on this behaviour. Please notice that 'block detect' reports bad uuid for /dev/sda1 (and others) mixing inside uuid of raid volume with outside of the partitions. Bug is 'block detect' showing the same uuid for /dev/sda1 and /dev/md1 while they are different.
BTW I'm using three different superblock formats for mdstat to experiment.
Should I report this as a bug?
This error is also inside of busybox blkid (/sbin/blkid) while normal blkid (/usr/sbin/blkid) shows uuid correctly.
root@bee:/tmp# block detect
config 'global'
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config 'mount'
option target '/mnt/sda1'
option uuid '48f38899-5efb-4477-adca-bf11d81df99f'
option enabled '0'
config 'mount'
option target '/mnt/sda2'
option uuid '66522da0-a3f5-4485-8c8c-adeecca59f86'
option enabled '0'
config 'mount'
option target '/mnt/sda3'
option uuid 'f13af9df-efa8-5c2c-aeb4-1c248fd33a12'
option enabled '0'
config 'mount'
option target '/mnt/sdb1'
option uuid '48f38899-5efb-4477-adca-bf11d81df99f'
option enabled '0'
config 'mount'
option target '/mnt/sdb2'
option uuid '66522da0-a3f5-4485-8c8c-adeecca59f86'
option enabled '0'
config 'mount'
option target '/mnt/sdb3'
option uuid 'f13af9df-efa8-5c2c-aeb4-1c248fd33a12'
option enabled '0'
config 'mount'
option target '/mnt/md1'
option uuid '48f38899-5efb-4477-adca-bf11d81df99f'
option enabled '0'
config 'mount'
option target '/mnt/md2'
option uuid '66522da0-a3f5-4485-8c8c-adeecca59f86'
option enabled '0'
config 'mount'
option target '/mnt/md3'
option uuid '1727e815-80a5-44a8-b9b6-403308e0b311'
option enabled '0'
root@bee:/tmp# which blkid
/usr/sbin/blkid
root@bee:/tmp# blkid
/dev/mtdblock5: TYPE="squashfs"
/dev/sda1: UUID="8b2d137c-4973-133d-6de4-7e91c4a4cdb0" TYPE="linux_raid_member" PARTUUID="f6eb912c-6ef7-4b8b-90d7-3ccc4e05d0c3"
/dev/sda2: UUID="91420b78-fc11-8503-06d1-bc4c72d4a21c" UUID_SUB="9526883b-4496-93b1-14f8-121d5b3e052b" LABEL="gnubee:md2" TYPE="linux_raid_member" PARTUUID="b555bed8-02ea-4a68-96e2-997d76d174ad"
/dev/sda3: UUID="f13af9df-efa8-5c2c-aeb4-1c248fd33a12" UUID_SUB="8b30d06f-23db-72cd-5a7d-ef4c520d5982" LABEL="gnubee:md3" TYPE="linux_raid_member" PARTUUID="a6b92d9d-55b6-470c-8dc9-67edacb3c8e4"
/dev/sdb1: UUID="8b2d137c-4973-133d-6de4-7e91c4a4cdb0" TYPE="linux_raid_member" PARTUUID="731a8023-5734-463e-8866-46ea97a3f928"
/dev/sdb2: UUID="91420b78-fc11-8503-06d1-bc4c72d4a21c" UUID_SUB="81d5faf8-e94f-8c12-6c17-6546e464442a" LABEL="gnubee:md2" TYPE="linux_raid_member" PARTUUID="db65b32d-cc04-4576-8f74-af69bf399d72"
/dev/sdb3: UUID="f13af9df-efa8-5c2c-aeb4-1c248fd33a12" UUID_SUB="38afe5a6-02bc-105d-473d-30973c1e2b4d" LABEL="gnubee:md3" TYPE="linux_raid_member" PARTUUID="7cade22c-0b4d-46d1-a1f8-e8326117a28d"
/dev/md1: LABEL="OVERLAYROOT" UUID="48f38899-5efb-4477-adca-bf11d81df99f" TYPE="ext4"
/dev/md2: LABEL="EXTVAR" UUID="66522da0-a3f5-4485-8c8c-adeecca59f86" TYPE="ext4"
/dev/md3: UUID="1727e815-80a5-44a8-b9b6-403308e0b311" TYPE="crypto_LUKS"
root@bee:/tmp# /sbin/blkid
/dev/md3: UUID="1727e815-80a5-44a8-b9b6-403308e0b311" TYPE="crypto_LUKS"
/dev/md2: LABEL="EXTVAR" UUID="66522da0-a3f5-4485-8c8c-adeecca59f86" TYPE="ext4"
/dev/md1: LABEL="OVERLAYROOT" UUID="48f38899-5efb-4477-adca-bf11d81df99f" TYPE="ext4"
/dev/sda1: UUID="7c132d8b-3d13-7349-917e-e46db0cda4c4" TYPE="linux_raid_member"
/dev/sdb1: UUID="7c132d8b-3d13-7349-917e-e46db0cda4c4" TYPE="linux_raid_member"
/dev/mtdblock5: TYPE="squashfs"
/dev/sda2: LABEL="EXTVAR" UUID="66522da0-a3f5-4485-8c8c-adeecca59f86" TYPE="ext4"
/dev/sdb2: LABEL="EXTVAR" UUID="66522da0-a3f5-4485-8c8c-adeecca59f86" TYPE="ext4"