Finished packer scripts for Ubuntu 24.04

This commit is contained in:
2024-09-20 20:27:10 +03:00
parent 2c2770b4e1
commit f1c2906b58
13 changed files with 279 additions and 12 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash
echo Resize root partition...
echo "Resize root partition..."
sudo parted /dev/sda resizepart 2 100% > /dev/null 2>&1
sudo pvresize /dev/sda2 > /dev/null 2>&1
sudo lvextend -y -f -l +100%FREE /dev/vg01/root > /dev/null 2>&1
sudo resize2fs /dev/vg01/root > /dev/null 2>&1
echo Create rc.local file...
echo "Create rc.local file..."
sudo echo "#!/bin/sh -e
#
# rc.local