bin/console-conf-wrapper: update wrapper to use /run/console-conf

The changes in 66e8222a09 and
f3043cde88 introduced established
/run/console-conf as the project runtime directory. Make sure that the wrapper
uses the same location.

Credits to @kubiko for introducing the changes in his core24 nucleus branch.

Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
This commit is contained in:
Maciej Borzecki 2024-02-23 14:05:21 +01:00
parent f83bf19e47
commit 09b039a868
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ if snap routine console-conf-start --help >/dev/null 2>/dev/null; then
snap routine console-conf-start snap routine console-conf-start
fi fi
# preapre host finger prints for console-conf as it cannot access sshd or host keys # preapre host finger prints for console-conf as it cannot access sshd or host keys
mkdir -p /run/console_conf mkdir -p /run/console-conf
/usr/share/subiquity/console-conf-write-login-details --host-fingerprints > /run/console_conf/host-fingerprints.txt /usr/share/subiquity/console-conf-write-login-details --host-fingerprints > /run/console-conf/host-fingerprints.txt
snap run console-conf "$@" snap run console-conf "$@"
rval=$? rval=$?
if [ ! ${rval} -eq 0 ]; then if [ ! ${rval} -eq 0 ]; then