diff --git a/bin/console-conf-wrapper b/bin/console-conf-wrapper index 63e93d00..b6bbfb76 100755 --- a/bin/console-conf-wrapper +++ b/bin/console-conf-wrapper @@ -26,7 +26,7 @@ fi if [ -e "/var/lib/snapd/modeenv" ]; then mode="$(sed -n 's/mode=\([^[:space:]]*\)/\1/p' /var/lib/snapd/modeenv)" else - mode="$(sed 's/.*snapd_recovery_mode=\([^[:space:]]*\)[[:space:]].*/\1/' /proc/cmdline))" + mode="$(sed 's/.*snapd_recovery_mode=\([^[:space:]]*\)[[:space:]].*/\1/' /proc/cmdline)" fi if [ "${mode}" = "install" ]; then @@ -99,8 +99,8 @@ if snap routine console-conf-start --help >/dev/null 2>/dev/null; then snap routine console-conf-start fi # preapre host finger prints for console-conf as it cannot access sshd or host keys -mkdir -p /run/console_conf -/usr/share/subiquity/console-conf-write-login-details --host-fingerprints > /run/console_conf/host-fingerprints.txt +mkdir -p /run/console-conf +/usr/share/subiquity/console-conf-write-login-details --host-fingerprints > /run/console-conf/host-fingerprints.txt snap run console-conf "$@" rval=$? if [ ! ${rval} -eq 0 ]; then