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>
Mon, 13 Jun 2011 18:00:17 +0000 (19:00 +0100)
commitdc6b633ea55145d1552ae60812dc1000d33890a3
treee249f3475e5d5a7f107d074ae9481cf91e39535b
parent4c8bab2f3ea68dbb0c2029501ec21b4f1ca9049d
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