]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: support pseudo PARTUUID= for MBR
authorKarel Zak <kzak@redhat.com>
Thu, 13 Jun 2013 13:11:04 +0000 (15:11 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 13 Jun 2013 13:16:56 +0000 (15:16 +0200)
commitd67cc2889a0527b26d7bb8c76f2acac46751d673
treedb3bf14bd4d4d92029b8c56f2de692cb35996c90
parent635c0acc1c9d8524016f86276c99a5e27c9a0022
libblkid: support pseudo PARTUUID= for MBR

  # blkid /dev/sdb1
  dev/sdb1: TYPE="ext2" PARTUUID="54e743a7-01"

the PARTUUID is generated from MBR Id and partition number. The same
method uses Linux kernel for root=PARTUUID= on systems with MBR.

Note that the patch also removes 0x prefix from PTUUID.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/dos.c
libblkid/src/partitions/partitions.c
libblkid/src/partitions/partitions.h