Install only minimal requiered package before performing os_check

Co-authored-by: Christian König <ckoenig@posteo.de>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2021-08-03 22:48:03 +01:00
parent 913dcead7f
commit d68a2ffaf3
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173
2 changed files with 13 additions and 5 deletions

View file

@ -568,6 +568,7 @@ def test_os_check_fails(Pihole):
Pihole.run('''
source /opt/pihole/basic-install.sh
package_manager_detect
install_dependent_packages ${OS_CHECK_DEPS[@]}
install_dependent_packages ${INSTALLER_DEPS[@]}
cat <<EOT > /etc/os-release
ID=UnsupportedOS
@ -587,6 +588,7 @@ def test_os_check_passes(Pihole):
Pihole.run('''
source /opt/pihole/basic-install.sh
package_manager_detect
install_dependent_packages ${OS_CHECK_DEPS[@]}
install_dependent_packages ${INSTALLER_DEPS[@]}
''')
detectOS = Pihole.run('''