Added Snap seed.loaded wait logic

This commit is contained in:
Brian Zalewski 2023-08-18 00:08:01 -04:00 committed by GitHub
parent a2bde8d65f
commit c70bcd9a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1155,6 +1155,8 @@ async function ensurePackageManager(packageManager) {
const snap = which.sync('snap', { nothrow: true })
if (snap) {
runCommand('Check info for core snap package', `sudo snap info core`)
// Required: https://snapcraft.io/docs/troubleshooting#heading--early
runCommand('Ensuring snap is seeded', `sudo snap wait system seed.loaded`)
runCommand('Ensuring snap core is installed', `sudo snap install core`)
} else {
log('warn', logStage, 'Snap installation sequence completed but the snap bin is still not available')