From c5ee7c95d58072702b68c9e82becf5d8b26dd881 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 18 May 2020 08:46:25 +0200 Subject: [PATCH 1/2] console-conf-wrapper: show snapd log during install This will help finding some of the current install problems by showing the snapd log on the terminal during the install. --- bin/console-conf-wrapper | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/console-conf-wrapper b/bin/console-conf-wrapper index 609e9fc6..5eb47546 100755 --- a/bin/console-conf-wrapper +++ b/bin/console-conf-wrapper @@ -21,6 +21,9 @@ fi if grep -q 'snapd_recovery_mode=install' /proc/cmdline ; then echo "Installing the system, please wait for reboot" + snap watch --last=install-system || true + snap change --last=install-system || true + journalctl -u snapd.service -f sleep infinity fi From e748115ea9427d67ad2da7fb73e65198e5f15b46 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 19 May 2020 11:19:27 +0200 Subject: [PATCH 2/2] console-conf: show journal log during install Display the snapd journal while the system installs. This will give us important clues what might go wrong during a install and also gives the user some sense of progress. For post-beta we need to think if we really want to display this level of detail. OTOH we don't expect people to watch the console during firstboot yet and if that will happen we need to also tweak a bunch more (like kernel messages, systemd messages etc). --- bin/console-conf-wrapper | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/console-conf-wrapper b/bin/console-conf-wrapper index 5eb47546..7acf1d3b 100755 --- a/bin/console-conf-wrapper +++ b/bin/console-conf-wrapper @@ -21,8 +21,7 @@ fi if grep -q 'snapd_recovery_mode=install' /proc/cmdline ; then echo "Installing the system, please wait for reboot" - snap watch --last=install-system || true - snap change --last=install-system || true + # XXX: replace with something more user friendly after the beta? journalctl -u snapd.service -f sleep infinity fi