Skip to content

Commit

Permalink
fix: restore mergerfs RPM install
Browse files Browse the repository at this point in the history
This is a second fix for #214, since the first fix was more of a
workaround. But since upstream build an F41 RPM package in reponse to
our bug report, we can use that now, which fixes the concern reported by
users of mergerfs.

Fixes: #214
  • Loading branch information
bsherman committed Nov 24, 2024
1 parent 7bb87a2 commit d12f321
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ucore/install-ucore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ export IMAGE_NAME=ucore
/ctx/packages.sh

# install packages direct from github
# Fedora 41 packages missing for mergerfs
#/ctx/github-release-install.sh trapexit/mergerfs fc${RELEASE}.x86_64
curl --fail --retry 5 --retry-delay 5 --retry-all-errors -sSL -o /tmp/mfs-api.json \
"https://api.github.com/repos/trapexit/mergerfs/releases/latest"
MFS_TGZ_URL=$(cat /tmp/mfs-api.json | \
jq -r --arg arch_filter "linux_amd64" \
'.assets | sort_by(.created_at) | reverse | .[] | select(.name|test($arch_filter)) | select (.name|test("tar.gz$")) | .browser_download_url')
curl -sSL -o /tmp/mergerfs.tar.gz "${MFS_TGZ_URL}"
tar -zxvf /tmp/mergerfs.tar.gz -C /usr --strip-components=2
/ctx/github-release-install.sh trapexit/mergerfs fc${RELEASE}.x86_64

Check warning on line 17 in ucore/install-ucore.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

ucore/install-ucore.sh#L17

Double quote to prevent globbing and word splitting.

# tweak os-release
sed -i '/^PRETTY_NAME/s/(uCore.*$/(uCore)"/' /usr/lib/os-release

0 comments on commit d12f321

Please sign in to comment.