From b33eb5e1c6cf6a79ffd483ff1c0a78fdcdf171cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?=
<2031761+viniciusferrao@users.noreply.github.com>
Date: Thu, 23 Jul 2026 21:53:16 -0300
Subject: [PATCH] fix(sle): give the SUSE root partition the whole disk (auto
-> max)
The SLE AutoYaST profile sized the root partition with auto, which
lets YaST pick a size and can leave the rest of the disk unused. RHEL
(part / --grow) and Ubuntu (root uses the remaining space) both give root the
whole disk; make SUSE consistent by using max. Swap stays auto.
Recovered from the unmerged lenovobuild branch (9a8679f4).
Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
---
xCAT-server/share/xcat/install/scripts/pre.sle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xCAT-server/share/xcat/install/scripts/pre.sle b/xCAT-server/share/xcat/install/scripts/pre.sle
index 712a69ba3..f02c0c6b2 100644
--- a/xCAT-server/share/xcat/install/scripts/pre.sle
+++ b/xCAT-server/share/xcat/install/scripts/pre.sle
@@ -193,7 +193,7 @@ fi
msgutil_r "$MASTER_IP" "info" "Found $instdisk, generate partition file..." "/var/log/xcat/xcat.log" "$log_label"
if [ -d /sys/firmware/efi ]; then
- sed -e 's!XCATPARTITIONHOOK!'$instdisk'vfat/boot/efi128mbswapauto/auto!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
+ sed -e 's!XCATPARTITIONHOOK!'$instdisk'vfat/boot/efi128mbswapauto/max!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
else
sed -e 's!XCATPARTITIONHOOK!'$instdisk'!' /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
fi