Commit graph

681 commits

Author SHA1 Message Date
xyny
64da850f5c
docs: fix build badge 2025-01-19 09:40:15 +00:00
Gerald Pinder
8ceb728bcd
fix(rpm-ostree): Update package list to use full path for local packages (#381) 2025-01-05 13:24:24 +01:00
Gerald Pinder
96b78eb3dc
feat: Create a systemd unit to create opt links on boot (#380)
This creates a systemd unit file that will execute on boot and create
symlinks in `/var/opt/` for every directory that exists in
`/usr/lib/opt/`. This removes the need for users to manually create
these links to get programs working like the Brave browser.
2024-12-30 11:42:58 -05:00
Gerald Pinder
1af8f9831c feat: Create a systemd unit to create opt links on boot 2024-12-29 14:20:22 -05:00
Gerald Pinder
49362d8aae
fix(ci): Fix publishing latest tag for default-flatpaks (#379) 2024-12-25 06:08:58 +01:00
fiftydinar
9c40055f29
fix(bling): Negativo17 repo message not being echoed, causing error 2024-12-22 09:57:33 +01:00
fiftydinar
fc4fd865da
chore(signing): Ensure that template policy is copied when signing is insecureAcceptAnything as default 2024-12-17 01:16:40 +01:00
fiftydinar
7451299a5a
fix(signing): Regression in scenario when policy.json doesn't exist in the image
`policy.json` template should be copied in that case, while existing `policy.json` should remain.
2024-12-16 22:59:57 +01:00
fiftydinar
23e36119b9
feat: initramfs module (#376)
* feat: `initramfs` module

* chore: Add `initramfs` to `modules.json`

* docs: Mention `dracut.conf.d` files as modifications which need initramfs regeneration

* docs: Style fix

* docs: Style fix

* docs: One more style fix

* docs: Add note about difference between `rpm-ostree initramfs` & this module

* docs: Further explanation of initramfs

* docs: Style fixes

* docs: Style fix

* docs: Grammar fixes

* chore: Add check for Fedora 41+

* docs: Add note about F41+ support

* docs: Add 3 dots for note

* chore: Grammar improvement in log

* chore: Some more explanations in log for old Fedora version

* chore: Add error message for cliwrapped images

* chore: Use cliwrapped dracut if available

* docs: Apply caution card suggestion

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>

* docs: Apply suggestion about modifications list

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>

* docs: Apply grammar suggestion for when this module should be used

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>

* chore: Make log message about initramfs regeneration state clearer

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>

* docs: Apply suggestion about expanded module description

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>

* docs: RAM instead of ram

* chore: Fix log typo

* docs: Update description in typeschema

* docs: Update description in module.yml

* chore: Notify of more than 1 qualified kernel before initramfs image variable

* chore: finalize shortdesc wording

---------

Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>
2024-12-15 11:02:37 +01:00
fiftydinar
902a0b1c61
chore(signing): Make a directory in /usr/etc for Ublue images if not already made pt. 2 2024-12-08 23:02:42 +01:00
fiftydinar
12d052668f
chore(signing): Make a directory in /usr/etc for Ublue images if not already made 2024-12-08 22:58:58 +01:00
fiftydinar
40cfcc6646
chore(signing): Switch fully from /usr/etc/ to /etc/ (#375)
* chore(signing): Switch fully from `/usr/etc/` to `/etc/`

Fixes: #319

I only tested this in non-Universal Blue image. With & without rechunk.

Before:
```
[11:39:42 g.i/h/rechunk:v1.0.1] => WARNING: FOUND /usr/etc. MERGING TO ETC FOR COMPATIBILITY
[11:39:42 g.i/h/rechunk:v1.0.1] => EXPECT PERMISSIONS ISSUES ON THE MERGED PATHS
[11:39:42 g.i/h/rechunk:v1.0.1] => The following files from /usr/etc will be merged to /etc:
[11:39:42 g.i/h/rechunk:v1.0.1] => ./usr/etc
[11:39:42 g.i/h/rechunk:v1.0.1] => |-- containers
[11:39:42 g.i/h/rechunk:v1.0.1] => |   |-- policy.json
[11:39:42 g.i/h/rechunk:v1.0.1] => |   `-- registries.d
[11:39:42 g.i/h/rechunk:v1.0.1] => |       `-- gidro-os.yaml
[11:39:42 g.i/h/rechunk:v1.0.1] => `-- pki
[11:39:42 g.i/h/rechunk:v1.0.1] =>     `-- containers
[11:39:42 g.i/h/rechunk:v1.0.1] =>         `-- gidro-os.pub
[11:39:42 g.i/h/rechunk:v1.0.1] => 
[11:39:42 g.i/h/rechunk:v1.0.1] => 5 directories, 3 files
```

After:
```
[18:26:31 g.i/h/rechunk:v1.0.1] => WARNING: FOUND /usr/etc. MERGING TO ETC FOR COMPATIBILITY
[18:26:31 g.i/h/rechunk:v1.0.1] => EXPECT PERMISSIONS ISSUES ON THE MERGED PATHS
[18:26:31 g.i/h/rechunk:v1.0.1] => The following files from /usr/etc will be merged to /etc:
[18:26:31 g.i/h/rechunk:v1.0.1] => ./usr/etc
[18:26:31 g.i/h/rechunk:v1.0.1] => `-- pki
[18:26:31 g.i/h/rechunk:v1.0.1] =>     `-- containers
[18:26:31 g.i/h/rechunk:v1.0.1] =>         `-- gidro-os.pub
[18:26:31 g.i/h/rechunk:v1.0.1] => 
[18:26:31 g.i/h/rechunk:v1.0.1] => 3 directories, 1 file
```

Only thing remaining is to see if copying .pub keys to `/etc/` only will work, as it caused issues before. That would get rid of all files in `/usr/etc/`.

a8cac2adc9/template/templates/Containerfile.j2 (L26)

* fix(signing): Error-out on missing image cosign key

* chore(signing): More descriptive log about missing image key

* chore(signing): Copy `policy.json` to `/usr/etc/` in Universal Blue images
2024-12-08 22:53:08 +01:00
fiftydinar
52aa593e69
chore(bling): Uninstall tainted RPMFusion repos also in negativo17 submodule 2024-12-08 16:58:56 +01:00
fiftydinar
0e7d20c2fa
docs(rpm-ostree): Explain clearly usage of optfix 2024-12-08 16:51:31 +01:00
fiftydinar
f13996bcd4
docs(rpm-ostree): Add brave.com in optfix, to reduce user confusion 2024-12-08 16:47:42 +01:00
fiftydinar
3f978df4ff
chore(bling): Some styling fixes for rpmfusion module 2024-12-08 16:42:05 +01:00
fiftydinar
7aa7a6e5f9
chore(bling): Fix log message in rpmfusion submodule 2024-12-08 16:37:42 +01:00
fiftydinar
8ab382de9a
feat(bling): Install tainted repos also in rpmfusion submodule 2024-12-08 16:35:50 +01:00
fiftydinar
27b16bc072
fix(rpm-ostree): Support install + removal for URL & local packages only, without classic packages 2024-12-08 15:42:22 +01:00
fiftydinar
0c6cb0479a
fix(rpm-ostree): Installation & removal not performing when classic & local packages are in recipe 2024-12-08 15:33:24 +01:00
fiftydinar
4803093f17
feat(akmods): Add additional available akmod options to schema 2024-12-06 20:43:59 +01:00
xyny
a044f600ca
fix(gnome-extensions): support int install with schema validation 2024-12-06 19:36:30 +02:00
Julio Gutierrez
c5a5f02858
fix(fonts): Add necessary trailing newline, to ensure fonts are processed separately (#373)
fix fonts module
2024-12-04 11:37:10 +01:00
fiftydinar
7011469432
fix(fonts): Installation of fonts not performing
I made a mistake in recipe format, I forgot to include `fonts:` as the main array, while `nerd-fonts:` & `google-fonts` are its subarrays.
2024-12-04 11:21:47 +01:00
fiftydinar
1e1cbd3c75
fix(fonts): Use readarray -t instead, to assure that mapfile works correctly with it 2024-12-04 08:19:14 +01:00
fiftydinar
4b210ff2ae
fix(fonts): Remove quotes which made module think there was more font arrays than usual 2024-12-04 08:07:49 +01:00
fiftydinar
c3532b7d30
fix(yafti): Forgot to set get_json_array pt. 2 2024-12-03 12:14:50 +01:00
fiftydinar
3af2146f36
yafti: Forgot to set get_json_array for it 2024-12-03 12:14:11 +01:00
fiftydinar
189048b119
chore: Remove usage of yq in favor of jq (#369)
* chore: Remove usage of `yq` in favor of `jq`

* fix: Missed bracket in `default-flatpaks`

* fix: `get_json_array` complaining about unpopulated arrays

* fix(files): Forgot to input `-r` flag for some `jq` calls

* fix(gschema-overrides): Use `try` in `get_json_array`

* chore(default-flatpaks): Replace `yq` with `jq` in run-time setup binaries

* chore: Switch to simplified `jq` syntax without brackets

* chore(default-flatpaks): Switch `repo-info` file from `yml` to `json`

* fix(default-flatpaks): Some `yq` calls

* chore: Revert back to bracket syntax for more reliable `jq` parsing

* chore(files): Missed bracket syntax

* chore: Approve bot suggestion about quoting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update modules/files/files.sh

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(yafti): Populating custom flatpaks

It's populated in reverse order compared to the format in recipe, but it works

* fix(fonts): Variable substitution is needed

* fix: Typo

* fix(fonts): Forgot to assign FONTS variable

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-02 19:02:13 +00:00
fiftydinar
ab654c9f16
chore(signing): Fix jq command for modifying policy.json 2024-12-01 21:56:24 +01:00
yacoob
c065b145de
fix: properly handle custom branch in chezmoi module (#368)
For posterity: `INIT_BRANCH_FLAG` should be set if `DOTFILE_BRANCH` is not empty and is not equal to `"null"`.
2024-11-30 22:28:26 +01:00
xyny
387a29e127
feat(bling): rpmfusion & negativo17 repo helpers (#363)
* feat(bling): rpmfusion & negativo17 repo helpers

* chore: Make adding negativo repo more robust

* chore: Make sure that priority is set when negativo repo is installed

* chore: Improve RPMFusion repo install robustness

* chore: Fix some indendation

* chore: Fix some indetation pt. 2

* chore: Install all RPMFusion repos in cases when only free or non-free repo is installed

* chore: Install all RPMFusion repos in cases when only free or non-free repo is installed pt. 2

---------

Co-authored-by: fiftydinar <65243233+fiftydinar@users.noreply.github.com>
2024-11-25 09:26:10 +01:00
fiftydinar
a166afed8a
fix(chezmoi): Properly use default branch
`yq` outputs "null" string when no results are found, so it's not an empty string.

Branch "null" is passed as custom branch, which very likely doesn't exist in user's chezmoi repo.

So to solve this issue, set "if string is empty or contains string "null", disable custom branch, otherwise enable"
2024-11-19 16:41:13 +01:00
fiftydinar
f176a3516e
feat(gschema-overrides): Make include array truly optional & includ… (#360)
* feat(gschema-overrides): Make `include` array truly optional & include all gschemas by default

* chore(gschema-overrides): Make recipe input matching log a bit clearer

* docs(gschema-overrides): Make some points clearer

* docs(gschema-overrides): Fix some unfinished line

* docs(gschema-override): Some indentation fixes

* docs(gschema-overrides): Remove redundant comment in module.yml
2024-11-14 21:08:48 +01:00
fiftydinar
9368c5dc5e
docs(default-flatpaks): Strictly specify how to add Fedora flatpak repo
It's easier for the user.
2024-11-12 17:14:46 +01:00
fiftydinar
1d7243782a
fix(default-flatpaks): Allow usage of Fedora flatpak remote (#359)
* fix(default-flatpaks): Allow usage of Fedora flatpak remote

* docs(default-flatpaks): Some further clarifications for retaining Fedora flatpak remote
2024-11-12 17:09:00 +01:00
Pat Connors
d58fa1e26d
docs(justfiles): Link Bazzite documentation instead. (#358)
As requested by @xynydev in the conversation of https://github.com/blue-build/modules/pull/354
2024-11-10 20:43:27 +01:00
yacoob
e328da9497
feat(chezmoi): Allow specifying branch for chezmoi init (#357)
* feat: allow specifying branch for `chezmoi init`

* fix: don't assume the default branch is `main`

* fix: get rid of `main` reference in the README
2024-11-08 20:24:00 +01:00
fiftydinar
be9f17c96e
chore(default-flatpaks): Temporarily remove auto-restart of services (#355)
* chore(default-flatpaks): Remove auto-restart of `system-flatpak-setup`

* chore(default-flatpaks): Remove auto-restart of `user-flatpak-setup`
2024-10-28 12:40:20 +01:00
Pat Connors
5e78c45b88
docs(justfiles): Add Bluefin's Just documentation (#354) 2024-10-27 21:01:33 +01:00
fiftydinar
ca84ec87eb
fix(default-flatpaks): Fix loginctl json parsing in F40 & less (systemd v255 & less) 2024-10-25 23:02:40 +02:00
fiftydinar
ccde6df956
fix(default-flatpaks): loginctl regression in parsing json output for notifications
On Fedora 41, which has systemd v256, `--output=json` no longer displays `json`, but classic output.

Using `-j` instead of `--output=json` fixes this issue.
2024-10-25 22:51:51 +02:00
fiftydinar
247a99e42a
fix(default-flatpaks): Make notifications be more reliable by delaying service start for 30s & cleaner internet-related logs 2024-10-25 19:13:53 +02:00
fiftydinar
ca9a840072
chore(default-flatpaks): Remove flatpaks first & then install 2024-10-23 20:15:54 +02:00
fiftydinar
f5d1e74361
chore(default-flatpaks): Fix outdated code comment 2024-10-23 18:47:16 +02:00
fiftydinar
95c17dcc23
chore(default-flatpaks): Increase connection attempts to 5 & print successful connection log 2024-10-23 18:26:06 +02:00
fiftydinar
2f2036db0b
fix(default-flatpaks): Couldn't resolve host name in some network setups (#352) 2024-10-23 17:53:39 +02:00
fiftydinar
89ea220f5e
chore(default-flatpaks): No need to query DISPLAY variable for notify-send
Notifications work without it & custom images without XWayland don't have `DISPLAY` variable at all (eg. secureblue & custom images based on it)
2024-10-23 11:42:06 +02:00
Gerald Pinder
7d08c2e39f
fix(rpm-ostree): Take into account the use of URL query parameters (#351) 2024-10-19 19:48:11 +02:00
fiftydinar
17c6be78d6
chore(default-flatpaks): Improve detection of username & UID for rootful notify-send 2024-10-18 20:49:01 +02:00