armbian_rootenc_setup: add warning for static IP with no ifupdown

This commit is contained in:
The MMGen Project 2026-07-09 18:31:41 +00:00
commit 750c5a7c1a
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -226,6 +226,13 @@ _warn_user_opts() {
fi
}
_warn_static_ip_without_ifupdown() {
if [ "$IP_ADDRESS" != 'none' -a "$NETCFG_IFUPDOWN" != 'y' ]; then
warn "\n You’ve requested a static IP but haven’t selected the ifupdown option (-I)."
warn " You may experience network configuration issues."
fi
}
_set_host_vars() {
BUILD_DIR='armbian_rootenc_build'
SRC_ROOT="$BUILD_DIR/src"
@ -1568,6 +1575,8 @@ else
[ "$MOUNT_TARGET_ONLY" ] && _mount_target_and_exit
_warn_user_opts
_warn_static_ip_without_ifupdown
_confirm_user_vars
[ "$IP_ADDRESS" == 'none' ] || get_authorized_keys