generator: Rewrite UUIDs that begin with zero byte.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 13 Jun 2011 17:58:53 +0000 (18:58 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 16 Jul 2011 08:27:02 +0000 (09:27 +0100)
commitef9f07095f3f4b26dcc36305bfb348ecebc5e735
tree47eeb3f3e3f019b385901f2c6d416e1126effdb3
parent6cbff91612b1aa64dbec785db35ed3a1caf3e036
generator: Rewrite UUIDs that begin with zero byte.

In util-linux <= 2.19, mkswap -U cannot handle the first byte of the
UUID being zero, so we artificially rewrite such UUIDs.

See: http://article.gmane.org/gmane.linux.utilities.util-linux-ng/4273
(cherry picked from commit 4ee190628bc05f0c8fad1f6d9c3e85619a91e8b8)
generator/generator_utils.ml