landley / toybox

toybox
http://landley.net/toybox
BSD Zero Clause License
2.44k stars 340 forks source link

blkid -L shows wrong output #519

Open firasuke opened 2 months ago

firasuke commented 2 months ago

Hey there,

Thanks for your time and effort on toybox!

I am using a blkid -L CUSTOMLABEL in my custom initramfs scripts, I have an ISO with the following blkid:

/dev/loop0: BLOCK_SIZE="2048" UUID="2024-06-21-19-34-09-00" LABEL="CUSTOMLABEL" TYPE
="iso9660" PTUUID="8accdc61-d931-4b5a-bc3a-ba34d52a8caf" PTTYPE="gpt"

Running util-linux's blkid -L CUSTOMLABEL shows /dev/loop0 while running toybox's blkid shows:

SEC_TYPE="msdos"GLAUCUS

The output SEC_TYPE="msdos" does not belong here.

Running blkid -U "2024-06-21-19-34-09-00" works fine for both util-linux and toybox, so the issue is just with blkid -L.

Is this intended behavior?

Thanks in advance!