Allow the ubuntu-desktop-installer to request snap seeding state

This is used to only start the installer after all snaps have been
seeded.

Co-Authored-By: Dennis Loose <dennis.loose@canonical.com>
This commit is contained in:
Didier Roche 2025-07-15 16:24:10 +02:00
parent 9fbd9ba71e
commit 69f6b3795b
No known key found for this signature in database
GPG Key ID: 98B24A9CE4AC208E

View File

@ -0,0 +1,13 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
//
// THIS FILE IS ONLY AVAILABLE ON THE LIVE SYSTEM
//
// Allow the ubuntu-desktop-installer to request snap seeding state
// used before starting.
polkit.addRule(function(action, subject) {
if (action.id == "io.snapcraft.snapd.manage-configuration") {
return polkit.Result.YES;
}
});