From 74ed929873aa02b2f5f19df6fa97f0a2d5221d6f Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Wed, 17 Jan 2024 16:22:14 +0100 Subject: [PATCH] confd: Change the default shell of the admin user to bash This let's users script infix devices without needing any special NETCONF tools installed - ssh is enough. E.g. you can get the running version with something like: ssh INFIX-HOST sysrepocfg -X -fjson -d operational \ -x "/system-state/platform/os-release" | jq . It also means that SCP works as expected, by default. --- src/confd/bin/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/bin/bootstrap b/src/confd/bin/bootstrap index 299a40de..c0240dc7 100755 --- a/src/confd/bin/bootstrap +++ b/src/confd/bin/bootstrap @@ -102,7 +102,7 @@ factory() gen-interfaces $GEN_IFACE_OPTS >"$FACTORY_D/20-interfaces.json" # Extract password for admin user from VPD - if ! gen-admin-auth infix-shell-type:clish >"$FACTORY_D/20-authentication.json"; then + if ! gen-admin-auth infix-shell-type:bash >"$FACTORY_D/20-authentication.json"; then console_error "Unable to create factory-config, gen-admin-auth failed" return fi