* added grub2 theme, removed docker and code

* removed grub stuff

* removed docker and code, added flatpaks
This commit is contained in:
Flux 2025-11-22 14:46:08 +02:00 committed by GitHub
parent f832d683ed
commit a16562e24d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 145 additions and 33 deletions

View file

@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -euo pipefail
shopt -s nullglob
entries_dir="/boot/loader/entries"
for f in "$entries_dir"/ostree-*.conf "$entries_dir"/*-ostree-*.conf; do
[ -f "$f" ] || continue
# Already correct? skip
if grep -qxE 'grub_class[[:space:]]+bluefin' "$f"; then
continue
fi
tmp="$(mktemp)"
if grep -qE '^grub_class[[:space:]]+' "$f"; then
sed -E 's/^grub_class[[:space:]].*/grub_class bluefin/' "$f" >"$tmp"
else
awk '1; /^title[[:space:]]/{print "grub_class bluefin";}' "$f" >"$tmp"
fi
if ! cmp -s "$f" "$tmp"; then
chmod --reference="$f" "$tmp"
chown --reference="$f" "$tmp"
command -v chcon >/dev/null 2>&1 && chcon --reference="$f" "$tmp" 2>/dev/null || true
mv -f "$tmp" "$f"
else
rm -f "$tmp"
fi
done