Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Rename remote to a simpler name
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Dec 5, 2023
1 parent 6d5b1c9 commit 6dfe7a5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This might be needed in both the `ostreeRepo` and the `ostreeImage` feature.

- `REMOTE_URL`: Hostname to use as OSTree remote, default value is `http://ostree.gardenlinux.io`
- `OS_NAME`: OS Name (Stateroot) used for OSTree, default value is either `debian` or `gardenlinux`, change this if you want to build a custom OS
- `REMOTE_NAME`: Name for the OSTree remote (similar to remote 'origin' in git), default value is either `debian` or `gardenlinux`, change this if you want to build a custom OS
- `REMOTE_NAME`: Name for the OSTree remote (similar to remote 'origin' in git), default value is `main`

### Debian

Expand Down
2 changes: 1 addition & 1 deletion debian/features/ostreeImage/image.ostree.raw
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euxo pipefail

REMOTE_URL=$([ -f /builder/features/ostreeImage/REMOTE_URL ] && cat /builder/features/ostreeImage/REMOTE_URL || echo http://ostree.gardenlinux.io)
OS_NAME=$([ -f /builder/features/ostreeImage/OS_NAME ] && cat /builder/features/ostreeImage/OS_NAME || echo debian)
REMOTE_NAME=$([ -f /builder/features/ostreeImage/REMOTE_NAME ] && cat /builder/features/ostreeImage/REMOTE_NAME || echo debian)
REMOTE_NAME=$([ -f /builder/features/ostreeImage/REMOTE_NAME ] && cat /builder/features/ostreeImage/REMOTE_NAME || echo main)
REMOTE_ARCHIVE_NAME=ostree-${OS_NAME}-repo-${BUILDER_ARCH}.tar.gz
LOCAL_ARCHIVE_PATH=/builder/features/ostreeImage/$REMOTE_ARCHIVE_NAME
REMOTE_REPO_PATH=${OS_NAME}-repo-${BUILDER_ARCH}
Expand Down
2 changes: 1 addition & 1 deletion debian/features/ostreeRepo/exec.late
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ echo Performing OSTree upgrade
# Workaround for missing remote in origin file
find /ostree/deploy/*/deploy/*.origin | while read origin_file
do
sudo sed -i 's#refspec=debian#refspec=origin:debian#g' $origin_file
sudo sed -i 's#refspec=debian#refspec=main:debian#g' $origin_file
done
sudo ostree admin upgrade
Expand Down
2 changes: 1 addition & 1 deletion debian/features/ostreeRepo/image.ostreeRepo.tar.gz
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euxo pipefail

REMOTE_URL=$([ -f /builder/features/ostreeRepo/REMOTE_URL ] && cat /builder/features/ostreeRepo/REMOTE_URL || echo http://ostree.gardenlinux.io)
OS_NAME=$([ -f /builder/features/ostreeRepo/OS_NAME ] && cat /builder/features/ostreeRepo/OS_NAME || echo debian)
REMOTE_NAME=$([ -f /builder/features/ostreeRepo/REMOTE_NAME ] && cat /builder/features/ostreeRepo/REMOTE_NAME || echo debian)
REMOTE_NAME=$([ -f /builder/features/ostreeRepo/REMOTE_NAME ] && cat /builder/features/ostreeRepo/REMOTE_NAME || echo main)
REMOTE_ARCHIVE_NAME=ostree-${OS_NAME}-repo-${BUILDER_ARCH}.tar.gz
LOCAL_ARCHIVE_PATH=/builder/features/ostreeRepo/$REMOTE_ARCHIVE_NAME
REMOTE_REPO_PATH=${OS_NAME}-repo-${BUILDER_ARCH}
Expand Down
2 changes: 1 addition & 1 deletion gardenlinux/features/ostreeRepo/exec.late
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ostree log gardenlinux/today/arm64
# Workaround for missing remote in origin file
find /ostree/deploy/*/deploy/*.origin | while read origin_file
do
sudo sed -i 's#refspec=gardenlinux#refspec=origin:gardenlinux#g' $origin_file
sudo sed -i 's#refspec=gardenlinux#refspec=main:gardenlinux#g' $origin_file
done
sudo ostree admin upgrade
Expand Down
2 changes: 1 addition & 1 deletion gardenlinux/features/ostreeRepo/image.ostreeRepo.tar.gz
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -euxo pipefail
BUILD_VARIANT=$([ -f /builder/features/ostreeRepo/BUILD_VARIANT ] && cat /builder/features/ostreeRepo/BUILD_VARIANT || echo kvm)
REMOTE_URL=$([ -f /builder/features/ostreeRepo/REMOTE_URL ] && cat /builder/features/ostreeRepo/REMOTE_URL || echo http://ostree.gardenlinux.io)
OS_NAME=$([ -f /builder/features/ostreeRepo/OS_NAME ] && cat /builder/features/ostreeRepo/OS_NAME || echo gardenlinux)
REMOTE_NAME=$([ -f /builder/features/ostreeRepo/REMOTE_NAME ] && cat /builder/features/ostreeRepo/REMOTE_NAME || echo gardenlinux)
REMOTE_NAME=$([ -f /builder/features/ostreeRepo/REMOTE_NAME ] && cat /builder/features/ostreeRepo/REMOTE_NAME || echo main)
REMOTE_ARCHIVE_NAME=ostree-${OS_NAME}-repo-${BUILD_VARIANT}-${BUILDER_ARCH}.tar.gz
LOCAL_ARCHIVE_PATH=/builder/features/ostreeRepo/$REMOTE_ARCHIVE_NAME
REMOTE_REPO_PATH=${OS_NAME}-repo-${BUILD_VARIANT}-${BUILDER_ARCH}
Expand Down

0 comments on commit 6dfe7a5

Please sign in to comment.