add bigboot-v3.yml, supporting filter_plugins, and fuzzy logic
All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Successful in 18s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian11) (push) Successful in 15s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian12) (push) Successful in 15s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora39) (push) Successful in 16s

This commit is contained in:
2024-02-15 21:06:58 -05:00
parent 9570563b72
commit e50d15a72c
8 changed files with 176 additions and 2 deletions

View File

@ -263,7 +263,7 @@
"name": "roles/bigboot/templates/increase-boot-partition.sh.j2",
"ftype": "file",
"chksum_type": "sha256",
"chksum_sha256": "f125865dca89db42ab397132207e038d645bef7ab3d6f151b72624d55ac36dd8",
"chksum_sha256": "14c7557901b1d79e51593fe03c91b64e96c02f8032f89c74600ce1dac944051c",
"format": 1
},
{

View File

@ -28,7 +28,7 @@
"name": "FILES.json",
"ftype": "file",
"chksum_type": "sha256",
"chksum_sha256": "ebc781493080569053657782010cf8835d45e10f26f7055780997ce3389e5424",
"chksum_sha256": "9f8f48dbcdee8dfa68367c409f646da5af0b06b9b2ccab8d1b48e15885974994",
"format": 1
},
"format": 1

View File

@ -12,9 +12,16 @@ disable_lvm_lock(){
mv "$tmpfile" /etc/lvm/lvm.conf
}
activate_volume_groups(){
for vg in `/usr/sbin/lvm vgs -o name --noheading 2>/dev/null`; do
/usr/sbin/lvm vgchange -ay $vg
done
}
main() {
name=$(basename "$0")
start=$(/usr/bin/date +%s)
activate_volume_groups
disable_lvm_lock
# run bigboot.sh to increase boot partition and file system size
ret=$(sh /usr/bin/bigboot.sh -d="{{ bigboot_boot_device_name }}" -s="{{ bigboot_size }}" -b="{{ bigboot_boot_partition_number }}" -p="{{ bigboot_boot_device_partition_prefix }}" 2>/dev/kmsg)