diff --git a/config.sh b/config.sh index 74ce9f6..fb10431 100755 --- a/config.sh +++ b/config.sh @@ -43,6 +43,18 @@ if [[ "$kiwi_profiles" != *"Container"* ]] && [[ "$kiwi_profiles" != *"FEX"* ]]; echo "GRUB_DISABLE_RECOVERY=true" >> /etc/default/grub 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 #--------------------------------------