Skip to content

Commit

Permalink
unify rfs and zufs pkgs (#2091)
Browse files Browse the repository at this point in the history
* unify rfs and zufs pkgs

* remove redundant github_name

* upgrade rfs_v2 to version 2.0.1
  • Loading branch information
Eslam-Nawara authored Oct 26, 2023
1 parent 124e113 commit 584ea7a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 42 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/bins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
package: yggdrasil
secrets:
token: ${{ secrets.HUB_JWT }}
zufs:
uses: ./.github/workflows/bin-package.yaml
with:
package: zufs
secrets:
token: ${{ secrets.HUB_JWT }}
rfs:
uses: ./.github/workflows/bin-package.yaml
with:
Expand Down
21 changes: 15 additions & 6 deletions bins/packages/rfs/rfs.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
RFS_VERSION="2.0.0"
RFS_CHECKSUM="d6e1c3036d8b0d7d6df4d67fe17a0502"
RFS_LINK="https://github.com/threefoldtech/rfs/releases/download/v${RFS_VERSION}/rfs"
RFS_VERSION_V1="1.1.1"
RFS_VERSION_V2="2.0.1"
RFS_CHECKSUM_V1="974b8dc45ae9c1b00238a79b0f4fc9de"
RFS_CHECKSUM_V2="bd51e07bcd4535b877d13ff0b66b52cc"
RFS_LINK_V1="https://github.com/threefoldtech/rfs/releases/download/v${RFS_VERSION_V1}/rfs"
RFS_LINK_V2="https://github.com/threefoldtech/rfs/releases/download/v${RFS_VERSION_V2}/rfs"

download_rfs() {
download_file ${RFS_LINK} ${RFS_CHECKSUM} rfs-${RFS_VERSION}
download_file ${RFS_LINK_V1} ${RFS_CHECKSUM_V1} rfs-${RFS_VERSION_V1}
download_file ${RFS_LINK_V2} ${RFS_CHECKSUM_V2} rfs-${RFS_VERSION_V2}
}

prepare_rfs() {
echo "[+] prepare rfs"
github_name "rfs-${RFS_VERSION}"
github_name "rfs-${RFS_VERSION_V2}"
}

install_rfs() {
echo "[+] install rfs"

mkdir -p "${ROOTDIR}/sbin"
cp -av rfs-${RFS_VERSION} "${ROOTDIR}/sbin/rfs"

cp -av rfs-${RFS_VERSION_V1} "${ROOTDIR}/sbin/g8ufs"
chmod +x "${ROOTDIR}/sbin/g8ufs"

cp -av rfs-${RFS_VERSION_V2} "${ROOTDIR}/sbin/rfs"
chmod +x "${ROOTDIR}/sbin/rfs"

}

build_rfs() {
Expand Down
30 changes: 0 additions & 30 deletions bins/packages/zufs/zufs.sh

This file was deleted.

0 comments on commit 584ea7a

Please sign in to comment.