Skip to content

Commit 4049a83

Browse files
committed
test
1 parent d346718 commit 4049a83

3 files changed

Lines changed: 45 additions & 30 deletions

File tree

files/scripts/example.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

files/scripts/selinux.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
echo "Installing secureblue Trivalent selinux policy"
6+
echo "Install 'selinux-policy-devel' build package & it's dependencies"
7+
dnf5 -y install selinux-policy-devel
8+
echo "Downloading secureblue Trivalent selinux policy"
9+
mkdir -p ./selinux/trivalent
10+
cd ./selinux/trivalent
11+
SELINUX_POLICY_URL="https://raw.githubusercontent.com/secureblue/secureblue/refs/heads/live/files/scripts/selinux/trivalent"
12+
curl -fLs --create-dirs -O "${SELINUX_POLICY_URL}/trivalent.fc" --output-dir "${PWD}"
13+
curl -fLs --create-dirs -O "${SELINUX_POLICY_URL}/trivalent.if" --output-dir "${PWD}"
14+
curl -fLs --create-dirs -O "${SELINUX_POLICY_URL}/trivalent.te" --output-dir "${PWD}"
15+
curl -fLs --create-dirs -O "${SELINUX_POLICY_URL}/trivalent.sh" --output-dir "${PWD}"
16+
echo "Executing trivalent.sh script"
17+
bash "${PWD}/trivalent.sh"
18+
cd ../..
19+
echo "Cleaning up build package 'selinux-policy-devel' & it's dependencies"
20+
dnf5 -y remove selinux-policy-devel
21+
22+
echo "Assure that network sandbox is always disabled by default (to ensure that login data remains)"
23+
echo "https://github.com/fedora-silverblue/issue-tracker/issues/603"
24+
echo -e '\nCHROMIUM_FLAGS+=" --disable-features=NetworkServiceSandbox"' >> /etc/trivalent/trivalent.conf
25+
26+
echo "Enable middle-click scrolling by default"
27+
sed -i '/CHROMIUM_FLAGS+=" --enable-features=\$FEATURES"/d' /etc/trivalent/trivalent.conf
28+
echo -e '\nFEATURES+=",MiddleClickAutoscroll"\nCHROMIUM_FLAGS+=" --enable-features=$FEATURES"' >> /etc/trivalent/trivalent.conf

recipes/recipe.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ name: otariinae-os
66
description: This is my personal OS image.
77

88
# the base image to build on top of (FROM) and the version tag to use
9-
base-image: ghcr.io/ublue-os/silverblue-main
10-
image-version: 41 # latest is also supported if you want new updates ASAP
9+
base-image: ghcr.io/ublue-os/aurora-dx-nvidia-open
10+
image-version: stable-daily # latest is also supported if you want new updates ASAP
1111

1212
# module configuration, executed in order
1313
# you can include multiple instances of the same module
@@ -17,27 +17,24 @@ modules:
1717
- source: system
1818
destination: / # copies files/system/* (* means everything inside it) into your image's root folder /
1919

20-
- type: rpm-ostree
20+
- type: dnf
2121
repos:
22-
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
22+
cleanup: true
23+
files:
24+
- https://repository.mullvad.net/rpm/stable/mullvad.repo
25+
- https://repo.secureblue.dev/secureblue.repo
26+
optfix:
27+
- Mullad VPN
28+
- cfxoffice
2329
install:
24-
- micro
25-
- starship
26-
remove:
27-
# example: removing firefox (in favor of the flatpak)
28-
# "firefox" is the main package, "firefox-langpacks" is a dependency
29-
- firefox
30-
- firefox-langpacks # also remove firefox dependency (not required for all packages, this is a special case)
30+
packages:
31+
- mullvad-vpn
32+
- http://crossover.codeweavers.com/redirect/crossover.rpm
33+
- trivalent
34+
- type: script
35+
scripts:
36+
- selinux.sh
3137

32-
- type: default-flatpaks
33-
configurations:
34-
- notify: true # Send notification after install/uninstall is finished (true/false)
35-
scope: system
36-
# If no repo information is specified, Flathub will be used by default
37-
install: # system flatpaks we want all users to have and not remove
38-
- org.mozilla.firefox
39-
- org.gnome.Loupe
40-
- scope: user # Also add Flathub user repo, but no user packages
4138

4239
- type: signing # this sets up the proper policy & signing files for signed images to work fully
4340

0 commit comments

Comments
 (0)