|
|
022f11 |
From 54a616cfb842a8203e03ff1db54a179d6ca133ce Mon Sep 17 00:00:00 2001
|
|
|
022f11 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
022f11 |
Date: Fri, 2 Aug 2013 15:16:10 +0100
|
|
|
022f11 |
Subject: [PATCH] sysprep: Disable fs-uuids operation by default.
|
|
|
022f11 |
|
|
|
022f11 |
Disable this operation because it is more likely than not to break
|
|
|
022f11 |
Linux guests.
|
|
|
022f11 |
|
|
|
022f11 |
To fix this properly will involve finding all the places in the guest
|
|
|
022f11 |
where the UUIDs are used to locate and mount filesystems,
|
|
|
022f11 |
eg. /etc/fstab and possibly initramfs.
|
|
|
022f11 |
|
|
|
022f11 |
This updates commit 8965368eb89532ac1613fffb0a3a661f005bae81.
|
|
|
022f11 |
|
|
|
022f11 |
(cherry picked from commit 5deea7fce675edb6803cd83a699b80e8ea383488)
|
|
|
022f11 |
---
|
|
|
022f11 |
sysprep/sysprep_operation_fs_uuids.ml | 7 ++++++-
|
|
|
022f11 |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
022f11 |
|
|
|
022f11 |
diff --git a/sysprep/sysprep_operation_fs_uuids.ml b/sysprep/sysprep_operation_fs_uuids.ml
|
|
|
022f11 |
index 3c319f0..9cdf576 100644
|
|
|
022f11 |
--- a/sysprep/sysprep_operation_fs_uuids.ml
|
|
|
022f11 |
+++ b/sysprep/sysprep_operation_fs_uuids.ml
|
|
|
022f11 |
@@ -42,7 +42,12 @@ let rec fs_uuids_perform g root =
|
|
|
022f11 |
|
|
|
022f11 |
let fs_uuids_op = {
|
|
|
022f11 |
name = "fs-uuids";
|
|
|
022f11 |
- enabled_by_default = true;
|
|
|
022f11 |
+ (* NB: This is disabled by default now because doing this
|
|
|
022f11 |
+ * properly requires us to find all places in the image
|
|
|
022f11 |
+ * where the UUID might be used. This includes /etc/fstab
|
|
|
022f11 |
+ * and possibly the initramfs. XXX
|
|
|
022f11 |
+ *)
|
|
|
022f11 |
+ enabled_by_default = false;
|
|
|
022f11 |
heading = s_"Change filesystem UUIDs";
|
|
|
022f11 |
pod_description = Some (s_"\
|
|
|
022f11 |
On guests and filesystem types where this is supported,
|
|
|
022f11 |
--
|
|
|
022f11 |
1.8.3.1
|
|
|
022f11 |
|