forked from secureblue/secureblue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'live' into hardenedchromiumnewfilepaths
- Loading branch information
Showing
16 changed files
with
526 additions
and
214 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
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,26 @@ | ||
name: installer-checksum | ||
on: | ||
pull_request: | ||
branches: | ||
- live | ||
jobs: | ||
verify-installer-checksum: | ||
name: Linkspector | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
||
- name: Verify checksum | ||
shell: bash | ||
env: | ||
INSTALL_SCRIPT: files/system/usr/share/secureblue/install_secureblue.sh | ||
EXAMPLE_BUTANE: docs/example.butane | ||
run: | | ||
INSTALLER_CHECKSUM=$(sha256sum $INSTALL_SCRIPT | awk '{ print $1 }') | ||
BUTANE_CHECKSUM=$(grep -oP 'sha256-\K[a-f0-9]{64}' $EXAMPLE_BUTANE) | ||
if [ "$INSTALLER_CHECKSUM" != "$BUTANE_CHECKSUM" ]; then | ||
echo "Checksum mismatch." | ||
echo "Installer checksum: $INSTALLER_CHECKSUM" | ||
echo "Butane checksum: $BUTANE_CHECKSUM" | ||
exit 1 | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
variant: fcos | ||
version: 1.5.0 | ||
passwd: | ||
users: | ||
- name: core | ||
groups: | ||
- wheel | ||
password_hash: $y$j9T$mefBCJbp/a49aSkTT4hpE1$6BXtrIuV8856t4A9r/R1GW4aR9eKXxsmB8FXt56Hx70 # 'secureblue' | ||
ssh_authorized_keys: | ||
- ssh-ed25519 <key> | ||
storage: | ||
files: | ||
- path: /opt/install_secureblue.sh | ||
contents: | ||
source: https://raw.githubusercontent.com/secureblue/secureblue/refs/heads/live/files/system/usr/share/secureblue/install_secureblue.sh | ||
verification: | ||
hash: sha256-1f2f8ac822614eb20c82547aabdd18fbded3906115db8ecd4efcf3a80e19bd7d | ||
mode: 0755 | ||
- path: /opt/run_install_secureblue.sh | ||
contents: | ||
inline: | | ||
sudo systemctl disable --now zincati.service 2>/dev/null | ||
sudo systemctl stop rpm-ostreed-automatic.timer rpm-ostreed-automatic.service 2>/dev/null | ||
if [ ! -f /opt/install_secureblue.sh ]; then | ||
echo "Error: install_secureblue.sh was not downloaded." | ||
else | ||
sudo /opt/install_secureblue.sh | ||
if [ $? != 0 ]; then | ||
echo "Error: Secureblue installer failed." | ||
else | ||
sed -i "/\/opt\/run_install_secureblue.sh/d" /var/home/core/.bash_profile | ||
sudo rm -f /opt/*install_secureblue.sh | ||
echo "Automatically rebooting in 5 seconds..." | ||
sleep 5 | ||
sudo systemctl reboot | ||
fi | ||
fi | ||
mode: 0755 | ||
- path: /var/home/core/.bash_profile | ||
overwrite: false | ||
append: | ||
- inline: | | ||
/opt/run_install_secureblue.sh |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.