forked from canonical/pc-gadget
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase Ubuntu Core Desktop changes on top of core24:
* Add a Github Actions workflow to test build the snap. * Configure snap settings defaults via gadget.yaml. * Configure some interface connects for ubuntu-desktop-session via gadget.yaml. * Turn on the graphical boot splash screen. * Add a cloud-init script to do some first-boot config for the network-manager and lxd snaps. Co-authored-by: Ken VanDine <ken.vandine@canonical.com> Co-authored-by: Robert Ancell <robert.ancell@canonical.com> Co-authored-by: Sergio Costas Rodriguez <sergio.costas@canonical.com>
- Loading branch information
1 parent
5f1e9c7
commit 33eae03
Showing
6 changed files
with
93 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: build-snap | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 22 | ||
- 24 | ||
|
||
jobs: | ||
snap: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: snapcore/action-build@v1 | ||
id: snapcraft | ||
with: | ||
# Switch back to stable once https://github.com/canonical/snapcraft/pull/4850 is released. | ||
snapcraft-channel: edge | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: 'snap' | ||
path: ${{ steps.snapcraft.outputs.snap}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#cloud-config | ||
datasource_list: [NoCloud] | ||
runcmd: | ||
- /snap/pc-desktop/current/extra-setup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
quiet splash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
if [ -d /var/snap/network-manager/current/ ]; then | ||
mkdir -p /var/snap/network-manager/current/conf.d | ||
cat > /var/snap/network-manager/current/conf.d/disable-polkit.conf <<EOF | ||
[main] | ||
auth-polkit=false | ||
EOF | ||
fi | ||
|
||
if [ -x /snap/bin/lxd ]; then | ||
#initalize lxd with zfs storage backend for sudo support | ||
/snap/bin/lxd init --storage-backend zfs --auto | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters