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

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