Blame SOURCES/0041-v2v-Increase-Linux-minimum-root-filesystem-to-100-MB.patch

62f9b7
From 906e087d6c57d4c1f24ecb60f98a6c98f75881a7 Mon Sep 17 00:00:00 2001
62f9b7
From: "Richard W.M. Jones" <rjones@redhat.com>
62f9b7
Date: Thu, 20 May 2021 09:10:20 +0100
62f9b7
Subject: [PATCH] v2v: Increase Linux minimum root filesystem to 100 MB
62f9b7
62f9b7
Ming Xie created a RHEL 8.3 guest which required around 70 MB free in
62f9b7
order to recreate the initramfs (temporary space used by the pigz
62f9b7
step).  Increase the minimum space required to 100 MB, the same as for
62f9b7
Windows.
62f9b7
62f9b7
Seealso commit dfcf60c916a986a352938b432231a36558a3bc05.
62f9b7
62f9b7
Reported-by: Ming Xie
62f9b7
Fixes: https://bugzilla.redhat.com/1764569#c16
62f9b7
(cherry picked from commit e82ff27c3bea5ce2cc3b7d1ce8d775989fc7e5a5)
62f9b7
---
62f9b7
 docs/virt-v2v.pod |  2 +-
62f9b7
 v2v/v2v.ml        | 12 +++++-------
62f9b7
 2 files changed, 6 insertions(+), 8 deletions(-)
62f9b7
62f9b7
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
62f9b7
index 4016c724..4ecce369 100644
62f9b7
--- a/docs/virt-v2v.pod
62f9b7
+++ b/docs/virt-v2v.pod
62f9b7
@@ -1290,7 +1290,7 @@ to perform the conversion.  Currently it checks:
62f9b7
 
62f9b7
 =item Linux root filesystem
62f9b7
 
62f9b7
-Minimum free space: 20 MB
62f9b7
+Minimum free space: 100 MB
62f9b7
 
62f9b7
 =item Linux F</boot>
62f9b7
 
62f9b7
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
62f9b7
index bde51885..8af86687 100644
62f9b7
--- a/v2v/v2v.ml
62f9b7
+++ b/v2v/v2v.ml
62f9b7
@@ -389,14 +389,12 @@ and check_guest_free_space inspect mpstats =
62f9b7
      * typical size of 20-30MB.  Hence:
62f9b7
      *)
62f9b7
     | "/boot" | "/" when not has_boot && not is_windows -> 50
62f9b7
-    (* We may install some packages, and they would usually go
62f9b7
-     * on the root filesystem.
62f9b7
+    (* Both Linux and Windows require installation of files,
62f9b7
+     * device drivers and guest agents.
62f9b7
+     * https://bugzilla.redhat.com/1949147
62f9b7
+     * https://bugzilla.redhat.com/1764569#c16
62f9b7
      *)
62f9b7
-    | "/" when not is_windows -> 20
62f9b7
-    (* Windows requires copying in many device drivers and possibly
62f9b7
-     * guest agents, so we need more space.  (RHBZ#1949147).
62f9b7
-     *)
62f9b7
-    | "/" (* when is_windows *) -> 100
62f9b7
+    | "/" -> 100
62f9b7
     (* For everything else, just make sure there is some free space. *)
62f9b7
     | _ -> 10
62f9b7
   in
62f9b7
-- 
0602f3
2.31.1
62f9b7