Hello Ron!

On Tue, May 12, 2015 at 10:56:34PM +0930, Ron wrote:
> Package: util-linux
> Version: 2.25.2-6
> Severity: important
> 
> Hi, 
> 
> Sometime between wheezy and jessie, it appears blkid -s got broken.
> In jessie it now does this:
> 
>  # blkid -s UUID -o export /dev/sdb1
>  DEVNAME=/dev/sdb1
>  UUID=fb936a62-4a21-4cc5-a55e-da21aa3f6685

The reason DEVNAME is printed is because you're using the export
output format.

This behaviour was introduced in:

commit dab33573876270fec7550252bcc29c34e9ad3889
Author: Karel Zak <k...@redhat.com>
Date:   Fri Mar 2 14:05:26 2012 +0100

    blkid: add DEVNAME= to export output format
    
    Reported-by: Balamurugan Arumugam <barum...@redhat.com>
    Signed-off-by: Karel Zak <k...@redhat.com>

diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c
index b0524ca..dfdb8b9 100644
--- a/misc-utils/blkid.c
+++ b/misc-utils/blkid.c
@@ -310,6 +310,8 @@ static void print_value(int output, int num, const char 
*devname,
                print_udev_format(name, value);
 
        } else if (output & OUTPUT_EXPORT_LIST) {
+               if (num == 1 && devname)
+                       printf("DEVNAME=%s\n", devname);
                fputs(name, stdout);
                fputs("=", stdout);
                safe_print(value, valsz);

Apparently this behaviour is established since a very long time:
$ git describe dab33573876270fec7550252bcc29c34e9ad3889
v2.21-40-gdab3357
Possibly changing the output format now could be risky.
It's very unfortunate that Debian has lagged so long with updating
util-linux which means we notice these things so long after they
appeared.

> 
> Which is a bit unfortunate when the reason for doing that was to get
> the UUID for an fstab entry in an installer preseed file :)

Lets ask upstream if DEVNAME is considered a tag which should
be included in the tag filtering.... CCed.

Regards,
Andreas Henriksson


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to