aboutsummaryrefslogtreecommitdiff
diff options
from:
to:
context:
space:
mode:
-rwxr-xr-xconfig.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.sh b/config.sh
index 74ce9f6..fb10431 100755
--- a/config.sh
+++ b/config.sh
@@ -44,6 +44,18 @@ if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]];
fi
#======================================
+# Resize root partition on first boot
+#--------------------------------------
+
+if [[ "$kiwi_profiles" == *"Disk"* ]]; then
+ mkdir -p /etc/repart.d/
+ cat > /etc/repart.d/50-root.conf << EOF
+[Partition]
+Type=root
+EOF
+fi
+
+#======================================
# Delete & lock the root user password
#--------------------------------------
if [[ "$kiwi_profiles" == *"Cloud"* ]] || [[ "$kiwi_profiles" == *"Disk"* ]] || [[ "$kiwi_profiles" == *"Live"* ]]; then