Skip to content

Commit f38c317

Browse files
committed
Merge branch 'main' into update-disks-error-messages
2 parents 3a81de3 + 9347af9 commit f38c317

File tree

168 files changed

+2548
-10301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+2548
-10301
lines changed

.github/workflows/bin-package-18.04.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
name: ${{ steps.package.outputs.name }}.flist
5454
- name: Tagging
5555
uses: threefoldtech/publish-flist@master
56-
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
56+
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/zos-light')
5757
with:
5858
token: ${{ secrets.token }}
5959
action: tag

.github/workflows/bin-package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
name: ${{ steps.package.outputs.name }}.flist
6161
- name: Tagging
6262
uses: threefoldtech/publish-flist@master
63-
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
63+
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/zos-light')
6464
with:
6565
token: ${{ secrets.token }}
6666
action: tag

.github/workflows/bins.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ jobs:
8989
package: nnc
9090
secrets:
9191
token: ${{ secrets.HUB_JWT }}
92-
tpm:
93-
uses: ./.github/workflows/bin-package-18.04.yaml
94-
with:
95-
package: tpm
96-
secrets:
97-
token: ${{ secrets.HUB_JWT }}
92+
# tpm:
93+
# uses: ./.github/workflows/bin-package-18.04.yaml
94+
# with:
95+
# package: tpm
96+
# secrets:
97+
# token: ${{ secrets.HUB_JWT }}
9898
qsfs:
9999
uses: ./.github/workflows/bin-package-no-tag.yaml
100100
with:

.github/workflows/publish-bootstrap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
user: tf-autobuilder
4949
token: ${{ secrets.HUB_JWT }}
5050
name: ${{ steps.setname.outputs.build }}
51-
target: bootstrap:development.flist
51+
target: bootstrap-v4:development.flist
5252
- name: Symlink flist (release)
5353
if: success() && github.ref == 'refs/heads/main'
5454
uses: threefoldtech/publish-flist@master
@@ -57,4 +57,4 @@ jobs:
5757
user: tf-autobuilder
5858
token: ${{ secrets.HUB_JWT }}
5959
name: ${{ steps.setname.outputs.build }}
60-
target: bootstrap:latest.flist
60+
target: bootstrap-v4:latest.flist

.github/workflows/publish.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# will use the tag value (has to start with v)
7373
- name: Tagging
7474
uses: threefoldtech/publish-flist@master
75-
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
75+
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/zos-light')
7676
with:
7777
token: ${{ secrets.HUB_JWT }}
7878
action: tag
@@ -82,12 +82,13 @@ jobs:
8282

8383
# only for main branch (devnet)
8484
# this basically releases this build to devnet
85+
# TODO remove zos-light
8586
- name: Cross tagging (development)
86-
if: success() && github.ref == 'refs/heads/main'
87+
if: success() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/zos-light')
8788
uses: threefoldtech/publish-flist@master
8889
with:
8990
token: ${{ secrets.HUB_JWT }}
9091
action: crosstag
9192
user: tf-zos
92-
name: development
93+
name: development-v4
9394
target: tf-autobuilder/${{ steps.tag.outputs.reference }}

.github/workflows/test-bootstrap.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
* @muhamadazmy @delandtj @MarioBassem @ashraffouda @rawdaGastan @xmonader
1+
* @muhamadazmy @Omarabdul3ziz @ashraffouda @rawdaGastan @xmonader @Eslam-Nawara
22

bins/bins-extra.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,16 @@ exclude_libs() {
263263
echo "[+] excluding host critical libs"
264264
rm -rf ${ROOTDIR}/usr/lib/ld-linux*
265265
rm -rf ${ROOTDIR}/usr/lib/libc.*
266+
rm -rf ${ROOTDIR}/usr/lib/libm.*
266267
rm -rf ${ROOTDIR}/usr/lib/libdl.*
268+
rm -rf ${ROOTDIR}/usr/lib/librt.*
269+
rm -rf ${ROOTDIR}/usr/lib/libresolv.*
267270
rm -rf ${ROOTDIR}/usr/lib/libpthread.*
268271
}
269272

270273
github_name() {
271274
# force github print
272-
echo "name=${1}" >> $GITHUB_OUTPUT
275+
echo "name=${1}-amd64-z4" >> $GITHUB_OUTPUT
273276
echo "[+] github exported name: ${1}"
274277
}
275278

bootstrap/bootstrap/Cargo.lock

Lines changed: 54 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bootstrap/bootstrap/README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,29 @@ will do a multiple stage bootstrap. Currently this is only two stages:
1717
## How to works
1818

1919
- Bootstrap is used by [0-initramfs](https://github.com/threefoldtech/0-initramfs/blob/development-zos-v3/packages/modules.sh) to basically add `internet` and `bootstrap` services to the base image
20-
- After internet service is fully started, bootstrap will start to download flists needed to for zos node to work properly
20+
- After internet service is fully started, bootstrap will start to download flists needed for zos node to work properly
2121
- As described above bootstrap run in two stages:
2222
- The first stage is used to update bootstrap itself, and it is done like that to avoid re-building the image if we only changed the bootstrap code. this update is basically done from `tf-autobuilder` repo in the [hub/tf-autobuilder](https://hub.grid.tf/tf-autobuilder) and download the latest bootstrap flist
2323
- For the second stage bootstrap will download the flists for that env. bootstrap cares about `runmode` argument that we pass during the start of the node. for example if we passed `runmode=dev` it will get the the tag `development` under [hub/tf-zos](https://hub.grid.tf/tf-zos) each tag is linked to a sub-directory where all flists for this env exists to be downloaded and installed on the node
24+
25+
## Testing in Developer setup
26+
27+
To test bootstrap changes on a local dev-setup you need to do the following
28+
29+
- under zos/qemu `cp -r overlay.normal overlay.custom`
30+
- build `bootstrap` bin
31+
- copy the `bootstrap` bin to overlay.custom/sbin/
32+
- remove dir `overlay.custom/bin`
33+
- remove all files under `overlay.custom/etc/zinit/`
34+
- add the file overlay.custom/etc/zinit/bootstrap.yaml with the following content
35+
36+
```
37+
exec: bootstrap -d
38+
oneshot: true
39+
after:
40+
- internet
41+
```
42+
43+
- remove overlay link under `qemu/overlay `
44+
- create a new link pointing to overlay.custom under zos/qemu `ln -s overlay.custom overlay`
45+
- boot your vm as normal

0 commit comments

Comments
 (0)