Hey there, I'm running the script over and over again. I have a brand new installation (netinstall) with all available updates to date:
cat /etc/issue.net; uname -a Debian GNU/Linux 12 Linux secscan02 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64 GNU/Linux
Here are my observations, that may improve your script:
- per default, /sbin/ is not part of the path variable of root. Therefore, commands like usermod, useradd, runuser, visudo etc. fails. I ended up with adding /sbin/ to use absolute paths. (line 187, 188, 773, 862, 881, 885, 889) Other approach my be the explicit extension of the path variable with /sbin/ .
- the installation of greenbone-feed-sync fails, because the directory is empty. The directory is empty, since greenbone-feed-sync was not installed by pip, since it is already installed (obviously by a different pip install request). My solution was to add the switch -I to the pip command in build_install_py() ("install it anyway"). With this, the installation is done to /root/install/greenbone-feed-sync/ and could be copied to / afterwards. (line 728)
- I had to install two apt packages by hand, couldn't find the section in the script to sort it in: libmagic1, libmagic-dev (pretty much at the beginning) and capnproto (guess it was during the cargo build)
I like that the script is more or less idempotent (except postgresql db, role and user), so I could re-run it over and over again. Is this also the way to upgrade?
Edit: My installation is running, I created a patch file as documentation.
openvas_install.patch
Hey there, I'm running the script over and over again. I have a brand new installation (netinstall) with all available updates to date:
cat /etc/issue.net; uname -a Debian GNU/Linux 12 Linux secscan02 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64 GNU/LinuxHere are my observations, that may improve your script:
I like that the script is more or less idempotent (except postgresql db, role and user), so I could re-run it over and over again. Is this also the way to upgrade?
Edit: My installation is running, I created a patch file as documentation.
openvas_install.patch