[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#620608: uninitialized value in string eq at postinst:1280

On Mon, 2011-04-25 at 23:35 +0200, Jörg Sommer wrote:
> Jörg Sommer hat am Mon 25. Apr, 23:21 (+0200) geschrieben:
> > Ben Hutchings hat am Sun 03. Apr, 03:06 (+0100) geschrieben:
> > >     /sbin/blkid -o device | while read device; do
> > >         echo "$device:"
> > >         /sbin/blkid -o udev -s LABEL -s UUID -s TYPE "$device"
> > >     done
> > 
> > /dev/sda1
> > ID_FS_UUID=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
> > ID_FS_UUID_ENC=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
> > ID_FS_LABEL=_grml_:0
> > ID_FS_LABEL_ENC=\x27grml\x27:0
> > ID_FS_TYPE=linux_raid_member
> > /dev/sda2
> > ID_FS_LABEL=Linux_Var
> > ID_FS_LABEL_ENC=Linux_Var
> > ID_FS_UUID=60342ce9-209a-4b60-97b5-7d9309751202
> > ID_FS_UUID_ENC=60342ce9-209a-4b60-97b5-7d9309751202
> > ID_FS_TYPE=ext4
> That's strange. sda2 is a RAID member. I don't know why blkid thinks it's
> a standalone filesystem.

Yes, that's weird.

But now that I look over the code again, I think the bug you found is
not related to this information.  Does the /etc/mdadm.conf file on this
system use a device name wildcard?  The device name transition code
recognises wildcards so that it can warn that they may need to be
changed, but of course it cannot find any specific information about

> Do you know which of the UUIDs should be equal? The devices are grouped
> as they belong together.

I don't know, but I guess that the md-RAID label includes the UUID of
the RAID set so that all members would have the same UUID.

> # for i in sda1 sdc1 md0 sda2 sdc2 md1; do printf '%-4s: ' $i; blkid -o udev -s UUID /dev/$i G -v _ENC; done 
> sda1: ID_FS_UUID=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
> sdc1: ID_FS_UUID=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
> md0 : ID_FS_UUID=366ac7f5-493d-4dc4-bf54-d761b477405c
> sda2: ID_FS_UUID=60342ce9-209a-4b60-97b5-7d9309751202
> sdc2: ID_FS_UUID=2e95c5a4-d658-a167-cf89-181d5e6e3dc4
> md1 : ID_FS_UUID=60342ce9-209a-4b60-97b5-7d9309751202

So the anomaly is that for sda2 blkid shows the UUID of the filesystem
on the RAID, not the UUID of the RAID set.


Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: