You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Ran into an interesting idea today, when I was setting iommu across all three of my nodes, I started down the path of updating grub on my 2nd system, I realized I had systemd installed (instead of the typical grub I was used to). Then I got to thinking about automation using ansible to figure out if my system (or any system) has systemd or grub (using "ps -p 1 -o comm=") then updating either the grub file or the /etc/kernel/cmdline file as needed (my bash scripting skills = trash)
I went to see if you had a script that already automated this using bash but alas, there was none. Just throwing out an idea here since your repository is amazing and I want to contribute an idea: Maybe some sort of script to add to your list of scripts for the community that would:
A) figure out if the system is running Grub or systemd boot (maybe exit if it can't be determined) - Bash command : ps -p 1 -o comm=
B) determine what type of processor is being used (AMD vs Intel) - Maybe " lscpu | grep Model " ?
C1) For systemd (Intel , AMD remove the intel line) : echo "intel_iommu=on iommu=pt" >> /etc/kernel/cmdline
C2) For grub (Intel, AMD remove the intel linke) : sed /GRUB_CMDLINE_LINUX_DEFAULT="/ intel_iommu=on iommu=pt"
D1) For systemd : pve-efiboot-tool refresh
D2) for grub: update-grub
Something like that. I'm not a scripting pro by any means, just trying to make the project better.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Ran into an interesting idea today, when I was setting iommu across all three of my nodes, I started down the path of updating grub on my 2nd system, I realized I had systemd installed (instead of the typical grub I was used to). Then I got to thinking about automation using ansible to figure out if my system (or any system) has systemd or grub (using "ps -p 1 -o comm=") then updating either the grub file or the /etc/kernel/cmdline file as needed (my bash scripting skills = trash)
I went to see if you had a script that already automated this using bash but alas, there was none. Just throwing out an idea here since your repository is amazing and I want to contribute an idea: Maybe some sort of script to add to your list of scripts for the community that would:
A) figure out if the system is running Grub or systemd boot (maybe exit if it can't be determined) - Bash command : ps -p 1 -o comm=
B) determine what type of processor is being used (AMD vs Intel) - Maybe " lscpu | grep Model " ?
C1) For systemd (Intel , AMD remove the intel line) : echo "intel_iommu=on iommu=pt" >> /etc/kernel/cmdline
C2) For grub (Intel, AMD remove the intel linke) : sed /GRUB_CMDLINE_LINUX_DEFAULT="/ intel_iommu=on iommu=pt"
D1) For systemd : pve-efiboot-tool refresh
D2) for grub: update-grub
Something like that. I'm not a scripting pro by any means, just trying to make the project better.
Beta Was this translation helpful? Give feedback.
All reactions