Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flatcar/sysext-bakery
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: enix/sysext-bakery
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Aug 23, 2023

  1. chore(ci): enable manual run

    abuisine committed Aug 23, 2023
    Copy the full SHA
    04d26fe View commit details
  2. Copy the full SHA
    bcc7519 View commit details
  3. Copy the full SHA
    4f2c803 View commit details
  4. Copy the full SHA
    791db5a View commit details
  5. Copy the full SHA
    6581de2 View commit details
  6. Copy the full SHA
    a26a57c View commit details

Commits on Aug 24, 2023

  1. Copy the full SHA
    16536bc View commit details
  2. Copy the full SHA
    7f6c46b View commit details
  3. Copy the full SHA
    32c95f0 View commit details
  4. feat(teleport): add labels

    abuisine committed Aug 24, 2023
    Copy the full SHA
    56171ed View commit details
  5. Copy the full SHA
    85e2fd4 View commit details
  6. Copy the full SHA
    9631762 View commit details
  7. Copy the full SHA
    6058a02 View commit details
  8. Copy the full SHA
    e2321ec View commit details
  9. fix(teleport): better parameters

    fix(teleport) truc
    abuisine committed Aug 24, 2023
    Copy the full SHA
    6c7eb6f View commit details
  10. feat(teleport): proper

    abuisine committed Aug 24, 2023
    Copy the full SHA
    7622065 View commit details
  11. Revert "chore(ci): enable manual run"

    This reverts commit 04d26fe.
    abuisine committed Aug 24, 2023
    Copy the full SHA
    0a80000 View commit details
  12. Copy the full SHA
    8774563 View commit details

Commits on Aug 28, 2023

  1. Copy the full SHA
    b0b0027 View commit details
  2. feat: add ZFS systext

    donch committed Aug 28, 2023
    Copy the full SHA
    5e105b6 View commit details
  3. Copy the full SHA
    f13c3a3 View commit details
  4. Merge pull request #1 from enix/feat/zfs

    feat: add ZFS sysext (modules and tools build)
    donch authored Aug 28, 2023
    Copy the full SHA
    709cc1b View commit details

Commits on Sep 7, 2023

  1. Copy the full SHA
    345e563 View commit details
  2. Copy the full SHA
    87dd626 View commit details
  3. Copy the full SHA
    98a46f4 View commit details
  4. Copy the full SHA
    023c2a7 View commit details
  5. Copy the full SHA
    a9ab216 View commit details
  6. Copy the full SHA
    131ede0 View commit details
  7. Copy the full SHA
    1b322a9 View commit details
  8. fix: typo

    donch committed Sep 7, 2023
    Copy the full SHA
    3b93263 View commit details
  9. Merge pull request #2 from enix/feat/zfs-3510.2.7

    Build zfs extension for flatcar 3510.2.7
    donch authored Sep 7, 2023
    Copy the full SHA
    5cbe158 View commit details
  10. Copy the full SHA
    b8d9961 View commit details
  11. Copy the full SHA
    a114d8b View commit details
  12. Merge pull request #3 from enix/ci/release

    Ci/release
    donch authored Sep 7, 2023
    Copy the full SHA
    6843bac View commit details

Commits on Oct 25, 2023

  1. Copy the full SHA
    5dbb0c4 View commit details
  2. Copy the full SHA
    038a281 View commit details

Commits on Oct 26, 2023

  1. Merge pull request #4 from enix/zfs-202310251

    feat(zfs): build for 3602 stables version
    donch authored Oct 26, 2023
    Copy the full SHA
    fb21f7d View commit details

Commits on Nov 16, 2023

  1. Copy the full SHA
    9d05126 View commit details

Commits on Nov 21, 2023

  1. Copy the full SHA
    d4f9ca6 View commit details

Commits on Nov 30, 2023

  1. Copy the full SHA
    11123e6 View commit details
  2. Merge pull request #5 from enix/teleport-20231130

    feat(teleport): add more teleport versions
    donch authored Nov 30, 2023
    Copy the full SHA
    48706d2 View commit details
  3. Copy the full SHA
    36b7f70 View commit details
  4. Copy the full SHA
    82d1a63 View commit details
  5. Merge pull request #6 from enix/zfs-20231130

    feat(zfs): build using flatcar 3602.2.2
    donch authored Nov 30, 2023
    Copy the full SHA
    774e416 View commit details
  6. Merge pull request #7 from enix/zfs-20231130

    chore(zfs): add missing zfs needed files
    donch authored Nov 30, 2023
    Copy the full SHA
    81bd488 View commit details

Commits on Jan 5, 2024

  1. Copy the full SHA
    db92e96 View commit details
  2. Merge pull request #8 from enix/zfs-20240105

    feat(zfs): build zfs against FC 3602.2.3
    donch authored Jan 5, 2024
    Copy the full SHA
    3bf6524 View commit details

Commits on Jan 8, 2024

  1. ci: rework workflow

    donch committed Jan 8, 2024
    Copy the full SHA
    bf547c5 View commit details
  2. ci: set max pararrel to 1

    donch committed Jan 8, 2024
    Copy the full SHA
    4cfc155 View commit details
  3. Merge pull request #9 from enix/build-test

    ci: generate a correct SHA256SUMS
    donch authored Jan 8, 2024
    Copy the full SHA
    03c2584 View commit details
Showing with 18,888 additions and 17 deletions.
  1. +152 −16 .github/workflows/release.yaml
  2. +4 −1 bake.sh
  3. +64 −0 create_teleport_sysext.sh
  4. +65 −0 create_zfs_sysext.sh
  5. +7 −0 files/noop.conf
  6. +11 −0 files/zfs.conf
  7. +1 −0 files/zfs/3602.2.3/overlay/dev-python/ensurepip-pip/Manifest
  8. +24 −0 files/zfs/3602.2.3/overlay/dev-python/ensurepip-pip/ensurepip-pip-23.2.1.ebuild
  9. +11 −0 files/zfs/3602.2.3/overlay/dev-python/ensurepip-pip/metadata.xml
  10. +16 −0 files/zfs/3602.2.3/overlay/dev-python/ensurepip-wheels/ensurepip-wheels-100.ebuild
  11. +8 −0 files/zfs/3602.2.3/overlay/dev-python/ensurepip-wheels/metadata.xml
  12. +201 −0 files/zfs/3602.2.3/overlay/eclass/dist-kernel-utils.eclass
  13. +1,252 −0 files/zfs/3602.2.3/overlay/eclass/linux-mod-r1.eclass
  14. +4 −0 files/zfs/3602.2.3/overlay/metadata/layout.conf
  15. +1 −0 files/zfs/3602.2.3/overlay/profiles/repo_name
  16. +3 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base-policy/Manifest
  17. +15 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base-policy/metadata.xml
  18. +141 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base-policy/selinux-base-policy-2.20221101-r3.ebuild
  19. +141 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base-policy/selinux-base-policy-2.20221101-r4.ebuild
  20. +141 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild
  21. +3 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base/Manifest
  22. +15 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base/files/config
  23. +4 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base/files/selinux.conf
  24. +17 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base/metadata.xml
  25. +158 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base/selinux-base-2.20221101-r3.ebuild
  26. +158 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base/selinux-base-2.20221101-r4.ebuild
  27. +158 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-base/selinux-base-9999.ebuild
  28. +3 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-zfs/Manifest
  29. +8 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-zfs/metadata.xml
  30. +15 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-zfs/selinux-zfs-2.20221101-r3.ebuild
  31. +15 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-zfs/selinux-zfs-2.20221101-r4.ebuild
  32. +15 −0 files/zfs/3602.2.3/overlay/sec-policy/selinux-zfs/selinux-zfs-9999.ebuild
  33. +2 −0 files/zfs/3602.2.3/overlay/sys-fs/udev-init-scripts/Manifest
  34. +7 −0 files/zfs/3602.2.3/overlay/sys-fs/udev-init-scripts/metadata.xml
  35. +50 −0 files/zfs/3602.2.3/overlay/sys-fs/udev-init-scripts/udev-init-scripts-34.ebuild
  36. +50 −0 files/zfs/3602.2.3/overlay/sys-fs/udev-init-scripts/udev-init-scripts-35.ebuild
  37. +50 −0 files/zfs/3602.2.3/overlay/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
  38. +8 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/Manifest
  39. +24 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.1.11-gentoo.patch
  40. +21 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/metadata.xml
  41. +177 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.1.11-r1.ebuild
  42. +212 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.1.11.ebuild
  43. +178 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.1.12.ebuild
  44. +212 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.1.9.ebuild
  45. +217 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.0_rc3.ebuild
  46. +217 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
  47. +8 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/Manifest
  48. +14 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/files/2.1.5-dracut-zfs-missing.patch
  49. +60 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/files/2.1.5-r2-dracut-non-root.patch
  50. +42 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/metadata.xml
  51. +320 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/zfs-2.1.11.ebuild
  52. +312 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/zfs-2.1.12.ebuild
  53. +326 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/zfs-2.1.9.ebuild
  54. +306 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/zfs-2.2.0_rc3.ebuild
  55. +306 −0 files/zfs/3602.2.3/overlay/sys-fs/zfs/zfs-9999.ebuild
  56. +201 −0 files/zfs/3760.2.0/overlay/eclass/dist-kernel-utils.eclass
  57. +1,252 −0 files/zfs/3760.2.0/overlay/eclass/linux-mod-r1.eclass
  58. +4 −0 files/zfs/3760.2.0/overlay/metadata/layout.conf
  59. +1 −0 files/zfs/3760.2.0/overlay/profiles/repo_name
  60. +2 −0 files/zfs/3760.2.0/overlay/sys-fs/udev-init-scripts/Manifest
  61. +7 −0 files/zfs/3760.2.0/overlay/sys-fs/udev-init-scripts/metadata.xml
  62. +50 −0 files/zfs/3760.2.0/overlay/sys-fs/udev-init-scripts/udev-init-scripts-34.ebuild
  63. +50 −0 files/zfs/3760.2.0/overlay/sys-fs/udev-init-scripts/udev-init-scripts-35.ebuild
  64. +50 −0 files/zfs/3760.2.0/overlay/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
  65. +4 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs-kmod/Manifest
  66. +24 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.1.11-gentoo.patch
  67. +21 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs-kmod/metadata.xml
  68. +177 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs-kmod/zfs-kmod-2.1.14.ebuild
  69. +217 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.2.ebuild
  70. +217 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
  71. +4 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/Manifest
  72. +14 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/files/2.1.5-dracut-zfs-missing.patch
  73. +60 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/files/2.1.5-r2-dracut-non-root.patch
  74. +39 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/files/2.2.2-no-USER_NS.patch
  75. +42 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/metadata.xml
  76. +311 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/zfs-2.1.14.ebuild
  77. +307 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/zfs-2.2.2-r1.ebuild
  78. +306 −0 files/zfs/3760.2.0/overlay/sys-fs/zfs/zfs-9999.ebuild
  79. +201 −0 files/zfs/3815.2.3/overlay/eclass/dist-kernel-utils.eclass
  80. +1,280 −0 files/zfs/3815.2.3/overlay/eclass/linux-mod-r1.eclass
  81. +4 −0 files/zfs/3815.2.3/overlay/metadata/layout.conf
  82. +1 −0 files/zfs/3815.2.3/overlay/profiles/repo_name
  83. +1 −0 files/zfs/3815.2.3/overlay/sys-fs/udev-init-scripts/Manifest
  84. +7 −0 files/zfs/3815.2.3/overlay/sys-fs/udev-init-scripts/metadata.xml
  85. +50 −0 files/zfs/3815.2.3/overlay/sys-fs/udev-init-scripts/udev-init-scripts-35.ebuild
  86. +50 −0 files/zfs/3815.2.3/overlay/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
  87. +10 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/Manifest
  88. +24 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.1.11-gentoo.patch
  89. +100 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.2.2-arm64-neon.patch
  90. +31 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.2.2-autotrim.patch
  91. +17 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/metadata.xml
  92. +177 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.1.14.ebuild
  93. +219 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.2-r1.ebuild
  94. +218 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.2.ebuild
  95. +207 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.3.ebuild
  96. +207 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.4.ebuild
  97. +217 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
  98. +10 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/Manifest
  99. +14 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/files/2.1.5-dracut-zfs-missing.patch
  100. +60 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/files/2.1.5-r2-dracut-non-root.patch
  101. +39 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/files/2.2.2-no-USER_NS.patch
  102. +63 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/files/2.2.3-musl.patch
  103. +38 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/metadata.xml
  104. +311 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/zfs-2.1.14.ebuild
  105. +307 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/zfs-2.2.2-r1.ebuild
  106. +308 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/zfs-2.2.3.ebuild
  107. +308 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/zfs-2.2.4.ebuild
  108. +306 −0 files/zfs/3815.2.3/overlay/sys-fs/zfs/zfs-9999.ebuild
  109. +201 −0 files/zfs/3815.2.5/overlay/eclass/dist-kernel-utils.eclass
  110. +1,280 −0 files/zfs/3815.2.5/overlay/eclass/linux-mod-r1.eclass
  111. +4 −0 files/zfs/3815.2.5/overlay/metadata/layout.conf
  112. +1 −0 files/zfs/3815.2.5/overlay/profiles/repo_name
  113. +1 −0 files/zfs/3815.2.5/overlay/sys-fs/udev-init-scripts/Manifest
  114. +7 −0 files/zfs/3815.2.5/overlay/sys-fs/udev-init-scripts/metadata.xml
  115. +50 −0 files/zfs/3815.2.5/overlay/sys-fs/udev-init-scripts/udev-init-scripts-35.ebuild
  116. +50 −0 files/zfs/3815.2.5/overlay/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
  117. +10 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/Manifest
  118. +24 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.1.11-gentoo.patch
  119. +100 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.2.2-arm64-neon.patch
  120. +31 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/files/zfs-kmod-2.2.2-autotrim.patch
  121. +17 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/metadata.xml
  122. +177 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/zfs-kmod-2.1.14.ebuild
  123. +219 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.2-r1.ebuild
  124. +218 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.2.ebuild
  125. +207 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.3.ebuild
  126. +207 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/zfs-kmod-2.2.4.ebuild
  127. +217 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild
  128. +10 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/Manifest
  129. +14 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/files/2.1.5-dracut-zfs-missing.patch
  130. +60 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/files/2.1.5-r2-dracut-non-root.patch
  131. +39 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/files/2.2.2-no-USER_NS.patch
  132. +63 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/files/2.2.3-musl.patch
  133. +38 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/metadata.xml
  134. +311 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/zfs-2.1.14.ebuild
  135. +307 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/zfs-2.2.2-r1.ebuild
  136. +308 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/zfs-2.2.3.ebuild
  137. +308 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/zfs-2.2.4.ebuild
  138. +306 −0 files/zfs/3815.2.5/overlay/sys-fs/zfs/zfs-9999.ebuild
  139. +2 −0 files/zfs/repos.conf
  140. +1 −0 files/zfs/usr/lib/modules-load.d/zfs.conf
  141. +2 −0 files/zfs/usr/lib/systemd/system/basic.target.d/10-zfs.conf
  142. +2 −0 files/zfs/usr/lib/systemd/system/ensure-sysext.service.d/10-load-modules.conf
  143. +1 −0 files/zfs/usr/lib/tmpfiles.d/zfs.conf
168 changes: 152 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,67 @@
name: Build and release Systemd sysext images
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
name: Build
concurrency:
group: ${{ github.ref }}
runs-on: ubuntu-22.04
permissions:
# allow the action to create a release
contents: write
steps:
# checkout the sources
- uses: actions/checkout@v3

- name: Get git tag
id: tag
uses: devops-actions/action-get-tag@v1.0.2

- name: Tag / Release checks
id: tagcheck
run: |
if [[ ${{ steps.tag.outputs.tag }} =~ ^[0-9]+$ ]]; then
echo "TAG_TYPE=numeric" >> $GITHUB_ENV
echo "DRAFT=${{ toJSON(false) }}" >> $GITHUB_OUTPUT
else
echo "TAG_TYPE=alphanumeric" >> $GITHUB_ENV
echo "DRAFT=${{ toJSON(true) }}" >> $GITHUB_OUTPUT
fi
- name: Get latest release
continue-on-error: true
id: get_release
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
tag_name: ${{ steps.tag.outputs.tag }}
draft: ${{ fromJSON(steps.tagcheck.outputs.DRAFT) }}

- name: Asset download
continue-on-error: true
if: ${{ steps.get_release.outputs.id }}
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
version: ${{ steps.get_release.outputs.id }}
file: 'SHA256SUMS'
token: ${{ secrets.GITHUB_TOKEN }}

# build the images and generate a manifest
- name: build
- name: Build
run: |
set -euo pipefail
sudo apt update -qq && sudo apt install -yqq \
curl \
jq \
squashfs-tools \
xz-utils
images=(
"kubernetes-v1.27.4"
"docker-24.0.5"
"docker_compose-2.17.2"
"wasmtime-11.0.1"
"teleport-11.3.27"
"teleport-12.4.34"
"teleport-13.4.26"
"teleport-14.3.31"
"teleport-15.4.18"
"teleport-15.4.19"
"teleport-16.3.0"
"teleport-16.4.2"
"teleport-16.4.12"
)
for image in ${images[@]}; do
@@ -37,11 +71,113 @@ jobs:
mv "${component}.raw" "${image}.raw"
done
sha256sum *.raw > SHA256SUMS
sha256sum *.raw >> SHA256SUMS
# create a Github release with the generated artifacts
- name: release
- name: Release
uses: softprops/action-gh-release@v1
if: env.TAG_TYPE == 'numeric'
with:
files: |
SHA256SUMS
*.raw
- name: Draft Release
uses: softprops/action-gh-release@v1
if: env.TAG_TYPE == 'alphanumeric'
with:
draft: true
files: |
SHA256SUMS
*.raw
- name: Blinky
run: |
curl -o /dev/null https://app.getblinky.io/api/v1/ingest/webhook/be6f78fd-ca93-4642-8bae-678f73eb0014
multi-build:
name: Multi version build
concurrency:
group: ${{ github.ref }}
runs-on: ubuntu-22.04
container: mediadepot/flatcar-developer:${{ matrix.flatcarversion }}
strategy:
max-parallel: 1
matrix:
flatcarversion: ["3602.2.3", "3760.2.0", "3815.2.3", "3815.2.5"]
permissions:
# allow the action to create a release
contents: write
steps:
# checkout the sources
- uses: actions/checkout@v3

- name: Get git tag
id: tag
uses: devops-actions/action-get-tag@v1.0.2

- name: Tag / Release checks
id: tagcheck
run: |
if [[ ${{ steps.tag.outputs.tag }} =~ ^[0-9]+$ ]]; then
echo "TAG_TYPE=numeric" >> $GITHUB_ENV
echo "DRAFT=${{ toJSON(false) }}" >> $GITHUB_OUTPUT
else
echo "TAG_TYPE=alphanumeric" >> $GITHUB_ENV
echo "DRAFT=${{ toJSON(true) }}" >> $GITHUB_OUTPUT
fi
- name: Get latest release
continue-on-error: true
id: get_release
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
tag_name: ${{ steps.tag.outputs.tag }}
draft: ${{ fromJSON(steps.tagcheck.outputs.DRAFT) }}

- name: Asset download
continue-on-error: true
if: ${{ steps.get_release.outputs.id }}
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
version: ${{ steps.get_release.outputs.id }}
file: 'SHA256SUMS'
token: ${{ secrets.GITHUB_TOKEN }}

# build the images and generate a manifest
- name: Build
run: |
set -euo pipefail
images=(
"zfs-${{ matrix.flatcarversion }}"
)
for image in ${images[@]}; do
component="${image%-*}"
flatcarversion="${image#*-}"
"./create_${component}_sysext.sh" "${component}" "${flatcarversion}"
baked_component=$(ls ${component}-*.raw)
sysext_name="${baked_component%.raw}-${flatcarversion}.raw"
mv "$baked_component" "$sysext_name"
done
sha256sum *.raw >> SHA256SUMS
# create a Github release with the generated artifacts
- name: Release
uses: softprops/action-gh-release@v1
if: env.TAG_TYPE == 'numeric'
with:
files: |
SHA256SUMS
*.raw
files/*.conf
- name: Draft Release
uses: softprops/action-gh-release@v1
if: env.TAG_TYPE == 'alphanumeric'
with:
draft: true
files: |
SHA256SUMS
*.raw
files/*.conf
5 changes: 4 additions & 1 deletion bake.sh
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ elif [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
fi

SYSEXTNAME="$1"
VERSION_ID="${2:-}"

if [ "${FORMAT}" != "squashfs" ] && [ "${FORMAT}" != "btrfs" ] && [ "${FORMAT}" != "ext4" ] && [ "${FORMAT}" != "ext2" ]; then
echo "Expected FORMAT=squashfs, FORMAT=btrfs, FORMAT=ext4, or FORMAT=ext2, got '${FORMAT}'" >&2
@@ -36,7 +37,9 @@ fi
mkdir -p "${SYSEXTNAME}/usr/lib/extension-release.d"
{
echo "ID=${OS}"
if [ "${OS}" != "_any" ]; then
if [ "${VERSION_ID}" != "" ]; then
echo "VERSION_ID=${VERSION_ID}"
elif [ "${OS}" != "_any" ]; then
echo "SYSEXT_LEVEL=1.0"
fi
if [ "${ARCH}" != "" ]; then
64 changes: 64 additions & 0 deletions create_teleport_sysext.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/bin/bash
set -euo pipefail

export ARCH="${ARCH-amd64}"
SCRIPTFOLDER="$(dirname "$(readlink -f "$0")")"

if [ $# -lt 2 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "Usage: $0 VERSION SYSEXTNAME"
echo "The script will download the Teleport release binaries (e.g., for v9.6.23) and create a sysext squashfs image with the name SYSEXTNAME.raw in the current folder."
echo "A temporary directory named SYSEXTNAME in the current folder will be created and deleted again."
echo "All files in the sysext image will be owned by root."
echo "To use arm64 pass 'ARCH=arm64' as environment variable (current value is '${ARCH}')."
"${SCRIPTFOLDER}"/bake.sh --help
exit 1
fi

VERSION="$1"
SYSEXTNAME="$2"
if [ "${ARCH}" = aarch64 ]; then
ARCH=arm64
fi
rm -f teleport

# install teleport binaries.
rm -rf "${SYSEXTNAME}"
mkdir -p "${SYSEXTNAME}"/usr/bin
curl "https://cdn.teleport.dev/teleport-v${VERSION}-linux-${ARCH}-bin.tar.gz" | tar xvz -C "${SYSEXTNAME}"/usr/bin --strip-components=1 teleport/teleport

chmod +x "${SYSEXTNAME}"/usr/bin/teleport

# setup kubelet service.
mkdir -p "${SYSEXTNAME}/usr/lib/systemd/system"
cat > "${SYSEXTNAME}/usr/lib/systemd/system/teleport.service" <<-'EOF'
[Unit]
Description=Teleport SSH Service
After=network.target
After=systemd-machine-id-commit.service
Requires=systemd-machine-id-commit.service
[Service]
Type=simple
Restart=on-failure
Environment=TELEPORT_OPTIONS=
EnvironmentFile=-/etc/default/teleport
# Set the nodes roles with the `--roles`
# In most production environments you will not
# want to run all three roles on a single host
# --roles='proxy,auth,node' is the default value
# if none is set
ExecStart=/usr/bin/teleport start --roles=node --config=/etc/teleport.yaml --pid-file=/run/teleport.pid --token=%m --nodename=%H $TELEPORT_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/teleport.pid
LimitNOFILE=524288
[Install]
WantedBy=multi-user.target
EOF

mkdir -p "${SYSEXTNAME}/usr/lib/systemd/system/multi-user.target.d"
{ echo "[Unit]"; echo "Upholds=teleport.service"; } > "${SYSEXTNAME}/usr/lib/systemd/system/multi-user.target.d/10-teleport-service.conf"

"${SCRIPTFOLDER}"/bake.sh "${SYSEXTNAME}"
rm -rf "${SYSEXTNAME}"
65 changes: 65 additions & 0 deletions create_zfs_sysext.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/bin/bash
set -euo pipefail

export ARCH="${ARCH-amd64}"
SCRIPTFOLDER="$(dirname "$(readlink -f "$0")")"

if [ $# -lt 2 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "Usage: $0 VERSION SYSEXTNAME FLATCARVERSION"
echo "The script will build ZFS modules and tooling and create a sysext squashfs image with the name SYSEXTNAME.raw in the current folder."
echo "A temporary directory named SYSEXTNAME in the current folder will be created and deleted again."
echo "All files in the sysext image will be owned by root."
echo "To use arm64 pass 'ARCH=arm64' as environment variable (current value is '${ARCH}')."
"${SCRIPTFOLDER}"/bake.sh --help
exit 1
fi

SYSEXTNAME="$1"
FLATCARVERSION="$2"
if [ "${ARCH}" = aarch64 ]; then
ARCH=arm64
fi
rm -f ${SYSEXTNAME}

# base
echo "========== Prepare base"
emerge-gitclone
echo 'FEATURES="-network-sandbox -pid-sandbox -ipc-sandbox -usersandbox -sandbox"' >>/etc/portage/make.conf
cp files/zfs/repos.conf /etc/portage/repos.conf/zfs.conf
cp -r files/zfs/${FLATCARVERSION}/overlay/ /var/lib/portage/zfs-overlay/
# fixme starting with 3760. Incorrect permission on some headers
chmod -R +r /usr/lib/gcc/x86_64-cros-linux-gnu/

# build zfs
VERSION=$(emerge --search sys-fs/zfs$ | grep "Latest version available" | awk '{print $NF}')
echo "========== Build ZFS $VERSION"
kernel=$(ls /lib/modules) && KBUILD_OUTPUT=/lib/modules/${kernel}/build KERNEL_DIR=/lib/modules/${kernel}/source emerge -j$(nproc) --getbinpkg --onlydeps zfs
emerge -j$(nproc) --getbinpkg --buildpkgonly zfs squashfs-tools

# install deps
echo "========== Install deps"
emerge --getbinpkg --usepkg squashfs-tools

# flatcar layout compat
echo "========== Create Flatcar layout"
mkdir -p ${SYSEXTNAME} ; for dir in lib lib64 bin sbin; do mkdir -p ${SYSEXTNAME}/usr/$dir; ln -s usr/$dir ${SYSEXTNAME}/$dir; done
echo "========== Copy kernel modules to workdir"
mkdir -p ${SYSEXTNAME}/lib/modules
rsync -a /lib/modules/${kernel} ${SYSEXTNAME}/lib/modules/
echo "========== Emerge packages"
pkgs=$(emerge 2>/dev/null --usepkgonly --pretend zfs| awk -F'] ' '/binary/{ print $ 2 }' | awk '{ print "="$1 }'); emerge --usepkgonly --root=${SYSEXTNAME} --nodeps $pkgs
mv ${SYSEXTNAME}/etc ${SYSEXTNAME}/usr/etc
echo "========== Copy static files (systemd) to workdir"
rsync -a files/zfs/usr/ ${SYSEXTNAME}/usr/

# clean uneeded files
echo "========== Cleaning"
rm -rf ${SYSEXTNAME}/var/db
rm -rf ${SYSEXTNAME}/var/cache
rm -rf ${SYSEXTNAME}/usr/share
rm -rf ${SYSEXTNAME}/usr/src
rm -rf ${SYSEXTNAME}/usr/include

"${SCRIPTFOLDER}"/bake.sh "${SYSEXTNAME}" "${FLATCARVERSION}"
mv "${SYSEXTNAME}.raw" "${SYSEXTNAME}-${VERSION}.raw"
rm -rf "${SYSEXTNAME}"
7 changes: 7 additions & 0 deletions files/noop.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Source]
Type=regular-file
Path=/
MatchPattern=invalid@v.raw
[Target]
Type=regular-file
Path=/
11 changes: 11 additions & 0 deletions files/zfs.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Transfer]
Verify=false
[Source]
Type=url-file
Path=https://github.com/enix/sysext-bakery/releases/latest/download
MatchPattern=zfs-@v-%w.raw
[Target]
InstancesMax=3
Type=regular-file
Path=/opt/extensions/zfs
CurrentSymlink=/etc/extensions/zfs.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST pip-23.2.1-py3-none-any.whl 2086091 BLAKE2B 0a35bf4ba589f07e3c800d8f835e4bcdcd433976db83f91c86e12a2316b0b1c7de7120b248d70fe8b5587c28bb3c6e7bc633c64cdfb65a1f18f87a9e7a423181 SHA512 016a8cbd09384f1a9a44cb0e8274df75a8bcb2f3966bb5d708c62145289efaa5db98f75256c97e4f8046735ce2e529fbb076f284a46cdb716e89a75660200ad9
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit pypi

DESCRIPTION="Shared pip wheel for ensurepip Python module"
HOMEPAGE="https://pypi.org/project/pip/"
SRC_URI="$(pypi_wheel_url "${PN#ensurepip-}")"
S=${DISTDIR}

LICENSE="Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MIT MPL-2.0 PSF-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"

RDEPEND="
!<dev-python/ensurepip-wheels-100
"

src_install() {
insinto /usr/lib/python/ensurepip
doins "${A}"
}
Loading