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

@ -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)