Skip to content

Commit

Permalink
Merge pull request #85 from threefoldtech/development-zos-v4-debug-ke…
Browse files Browse the repository at this point in the history
…rnel-6.6.51

zos-v4: working v4 with latest kernel
  • Loading branch information
maxux authored Oct 3, 2024
2 parents dfab300 + cfa2dcd commit 41c3318
Show file tree
Hide file tree
Showing 16 changed files with 466 additions and 339 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/kernel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ on:
paths-ignore:
- README.md

# define global buildmode variable used by initramfs
# and by tf-build-upload script to specify if we trigger
# a 'debug' or 'release' (production) image
#
# mode release:
# set by default here, theses images are the most
# secure and are production ready, does not ship debugging
# tools and have hardened security
#
# mode debug:
# only set if branch name starts with 'development-' prefix, theses
# images contains easy remote access and extra debugging tools
#
# -- DEBUG IMAGE SHOULD NEVER BE USED IN A PRODUCTION --
#
env:
BUILDMODE: release

jobs:
kernel:
name: "Zero-OS Kernel Image"
Expand All @@ -22,6 +40,10 @@ jobs:
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: runbranch

- name: Update global build mode for debugging
if: ${{ contains(github.ref, 'development-') }}
run: echo "BUILDMODE=debug" >> $GITHUB_ENV

- name: "Install: go"
uses: actions/setup-go@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion autobuild/tf-build-deps-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apt-get update
apt-get install -y asciidoc xmlto --no-install-recommends

# toolchain dependencies
deps=(pkg-config make m4 autoconf)
deps=(pkg-config make m4 autoconf zstd)

# system tools and libs
deps+=(libssl-dev dnsmasq git curl bc wget)
Expand Down
2 changes: 1 addition & 1 deletion autobuild/tf-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apt-get update
apt-get install -y asciidoc xmlto --no-install-recommends

# toolchain dependencies
deps=(pkg-config make m4 autoconf)
deps=(pkg-config make m4 autoconf zstd)

# system tools and libs
deps+=(libssl-dev dnsmasq git curl bc wget)
Expand Down
6 changes: 4 additions & 2 deletions autobuild/tf-build-upload.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash
set -e

BUILDMODE="${BUILDMODE:-debug}"

cd staging

kernel=zero-os-${IMAGE_BRANCH}-generic-${GITHUB_SHA:0:10}.efi
linkname=zero-os-${IMAGE_BRANCH}-generic.efi
kernel=zero-os-${IMAGE_BRANCH}-${BUILDMODE}-${GITHUB_SHA:0:10}.efi
linkname=zero-os-${IMAGE_BRANCH}-${BUILDMODE}.efi

echo "[+] kernel: ${kernel}"
echo "[+] branch: ${linkname}"
Expand Down
1 change: 0 additions & 1 deletion config/backdoor/telnetd.yaml

This file was deleted.

Loading

0 comments on commit 41c3318

Please sign in to comment.