Refactored the code to make it more maintainable.

- Redid the code for the cloud to be able to specify subnets, with the default based on bridge number. It now adds a bridge every time you run it.

- The creating if the VM now prompts you for a bridge to select if there is more than one, and prompts you to select storage if there is more than 1

- The No Subcriber nag removal will now last through Proxmox updates
This commit is contained in:
jaminmc
2025-06-27 23:48:14 -04:00
parent f5bcd709ac
commit 8c72476379
6 changed files with 1021 additions and 2092 deletions

View File

@@ -5,15 +5,15 @@
#
# Author: Gabriel Luchina
# https://luchina.com.br
# 20211118T0010
# 20250627T2331
#!/bin/bash
shopt -s nullglob
for group in `ls /sys/kernel/iommu_groups/ | sort -V`
do
echo "IOMMU Group ${group##*/}:"
for device in /sys/kernel/iommu_groups/$group/devices/*
do
echo -e "\t$(lspci -nns ${device##*/})"
for iommu_group in $(ls /sys/kernel/iommu_groups/ | sort -V); do
echo "IOMMU Group ${iommu_group}:"
for pci_device in /sys/kernel/iommu_groups/$iommu_group/devices/*; do
echo -e "\t$(lspci -nns ${pci_device##*/})"
done
done