Skip to content

Commit

Permalink
feat: adjust /usr/lib/os-release
Browse files Browse the repository at this point in the history
  • Loading branch information
yacoob committed Nov 17, 2024
1 parent 10533e4 commit 7964078
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
10 changes: 10 additions & 0 deletions files/scripts/eget.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
# install eget via its installer
curl https://zyedidia.github.io/eget.sh | sh
install eget /usr/bin
rm -f eget
# use eget to install other binaries
/usr/bin/eget creativeprojects/resticprofile -a 'no_self_update' --to=/usr/bin
/usr/bin/eget atanunq/viu --to=/usr/bin
/usr/bin/eget watchexec/watchexec -a musl.tar.xz _ -a '^b3' -a '^sha512' --to=/usr/bin
10 changes: 10 additions & 0 deletions files/scripts/os-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

sed -i '
/^NAME=/s/Aurora/yaurora/
/^ID=/s/aurora/yaurora/
/^PRETTY_NAME=/s/Aurora.\+ \([0-9]\+\) (FROM Fedora Kinoite)/yaurora \1 (FROM Aurora-dx)/
/^DEFAULT_HOSTNAME=/s/aurora/yaurora/
/^VARIANT_ID=/s/aurora.\+/yaurora/
' /usr/lib/os-release
12 changes: 3 additions & 9 deletions recipes/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@ modules:

# run shell scripts
- type: script
snippets:
# install eget via its installer
- curl https://zyedidia.github.io/eget.sh | sh
- install eget /usr/bin
- rm -f eget
# use eget to install other binaries
- /usr/bin/eget creativeprojects/resticprofile -a 'no_self_update' --to=/usr/bin
- /usr/bin/eget atanunq/viu --to=/usr/bin
- /usr/bin/eget watchexec/watchexec -a musl.tar.xz _ -a '^b3' -a '^sha512' --to=/usr/bin
scripts:
- eget.sh
- os-release.sh

# add repositories, install RPM packages
- type: rpm-ostree
Expand Down

0 comments on commit 7964078

Please sign in to comment.