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

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