Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Google Chrome in base #6

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
ARG silverblue_version=40
FROM quay.io/fedora-ostree-desktops/silverblue:${silverblue_version}

COPY vscode.repo /etc/yum.repos.d/vscode.repo
COPY microsoft-release-public-key.asc /etc/pki/rpm-gpg/microsoft-release-public-key.asc
COPY overlay-root/etc/ /etc/

RUN mkdir -p /var/opt \
&& mkdir -p /usr/lib/opt/google \
&& ln -s /usr/lib/opt/google /var/opt/google

RUN --mount=type=bind,source=packages.json,target=/packages.json,z \
rpm-ostree override remove \
rpm --import /etc/pki/rpm-gpg/google-linux-public-key.asc \
&& rpm-ostree override remove \
$(jq -r '"--install=\(.add[].name)"' /packages.json | paste -d" " -) \
$(jq -r '.remove[].name' /packages.json | paste -d" " -) \
&& systemctl enable rpm-ostreed-automatic.timer \
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# custom-silverblue

Following Jorge Castro's lead and making my own spin on Silverblue

## Google Linux Signing Keys

Google does something weird with their keys for signing RPMs.
They add new subkeys every year or so and start signing with that.
The subkey
When things start breaking eventually, get the new key with:

```
wget -O overlay-root/etc/pki/rpm-gpg/google-linux-public-key.asc https://dl.google.com/linux/linux_signing_key.pub
```
267 changes: 267 additions & 0 deletions overlay-root/etc/pki/rpm-gpg/google-linux-public-key.asc

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions overlay-root/etc/yum.repos.d/google-chrome.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[google-chrome]
name=google-chrome
baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/google-linux-public-key.asc
File renamed without changes.
4 changes: 4 additions & 0 deletions packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"name": "gnome-tweaks",
"_comment": "Lets me put the titlebar buttons on the left"
},
{
"name": "google-chrome-stable",
"_comment": "Real upstream Google Chrome. Being in a Flatpak breaks its sandbox."
},
{
"name": "guestfs-tools",
"_comment": "Optiional package of Virtualization group"
Expand Down