Hi all,
I need to add some packages to Armbian in the build phase.
I tried two ways, both failed:
1. Had run through docs (https://docs.armbian.com/Developer-Guide_User-Configurations/), and the suggestion is to add a var PACKAGE_LIST_ADDITIONAL in userpatches/lib.config
PACKAGE_LIST_ADDITIONAL="$PACKAGE_LIST_ADDITIONAL watchdog modemmanager iptables iptables-persistent dnsmasq bridge-utils iproute2 openvpn"
Building the image I get the following error:
[π±] Using user configuration override [ /home/andrea/armbian/build/userpatches/lib.config ]
/home/andrea/armbian/build/userpatches/lib.config: line 1: PACKAGE_LIST_ADDITIONAL: readonly variable
[π₯] Exiting with error 1 [ at /home/andrea/armbian/build/userpatches/lib.config:1
source() --> userpatches/lib.config:1
do_extra_configuration() --> lib/functions/configuration/main-config.sh:352
do_with_logging() --> lib/functions/logging/section-logging.sh:81
do_with_conditional_logging() --> lib/functions/logging/section-logging.sh:111
prep_conf_main_build_single() --> lib/functions/main/config-prepare.sh:34
cli_standard_build_run() --> lib/functions/cli/cli-build.sh:22
armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176
main() --> compile.sh:50
]
[π₯] Cleaning up [ please wait for cleanups to finish ]
2. Customizing userpatches/customize-image.sh:
Added the following lines to the aforementioned file:
CUST_PACKAGES="watchdog modemmanager iptables iptables-persistent dnsmasq bridge-utils iproute2 openvpn"
apt-get install -yy $CUST_PACKAGES |& tee -a $DEST/${LOG_SUBPATH}/custom.log
The build completes, but packages aren't added as the logging prevents the build to fail. Anyway the following info messages are displayed during the build:
[π¨] Reading package lists...
[π¨] Building dependency tree...
[π¨] Reading state information...
[π¨] Package modemmanager is not available, but is referred to by another package.
[π¨] This may mean that the package is missing, has been obsoleted, or
[π¨] is only available from another source
[π¨]
[π¨] Package iptables is not available, but is referred to by another package.
[π¨] This may mean that the package is missing, has been obsoleted, or
[π¨] is only available from another source
[π¨] However the following packages replace it:
[π¨] libxtables12
[π¨]
[π¨] E: Unable to locate package watchdog
[π¨] E: Package 'modemmanager' has no installation candidate
[π¨] E: Package 'iptables' has no installation candidate
[π¨] E: Unable to locate package iptables-persistent
[π¨] E: Unable to locate package dnsmasq
[π¨] E: Unable to locate package openvpn
Can you suggest a suitable way to add packages to the build?
Thanks very much in advance, kind regards
Andrea