I’m new here and with golang.
I tested some simple scripts before and now try to convert some linux shell commands to golang.
At the moment I try to initialize hardware by detect and load kernel modules needed.
Here is a bash example how to load kernel modules needed by the hardware.
grep -h MODALIAS /sys/bus/*/devices/*/uevent | cut -d= -f2 | xargs /sbin/modprobe -abq 2> /dev/null
I now try to do it with GO or just detect the correct nic and hdd drivers.
It’s needed to use network connection and mount a hdd partition.