Added Snap seed.loaded wait logic
This commit is contained in:
parent
a2bde8d65f
commit
c70bcd9a21
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue