mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
mkosi: Update to latest
Let's make sure we're testing unprivileged builds properly. Usage of SourceFileTransfer= and SourceFileTransferFinal= are removed as they were dropped by mkosi. SourceFileTransfer=mount is now the default in mkosi so behavior for the build script is unchanged. We stop copying sources in the final image until mkosi adds support for virtiofs.
This commit is contained in:
parent
5983306474
commit
c9853672a0
11
.github/workflows/mkosi.yml
vendored
11
.github/workflows/mkosi.yml
vendored
@ -79,7 +79,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
||||||
- uses: systemd/mkosi@500f93a36cc3d5bf1d06848a0a8870bf1424625f
|
- uses: systemd/mkosi@4be912b0fa4931403fddf649aa242cd4406471c4
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
@ -87,6 +87,7 @@ jobs:
|
|||||||
[Distribution]
|
[Distribution]
|
||||||
Distribution=${{ matrix.distro }}
|
Distribution=${{ matrix.distro }}
|
||||||
Release=${{ matrix.release }}
|
Release=${{ matrix.release }}
|
||||||
|
SecureBoot=yes
|
||||||
|
|
||||||
[Content]
|
[Content]
|
||||||
Environment=CI_BUILD=1
|
Environment=CI_BUILD=1
|
||||||
@ -96,13 +97,13 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Generate secure boot key
|
- name: Generate secure boot key
|
||||||
run: sudo mkosi genkey
|
run: mkosi genkey
|
||||||
|
|
||||||
- name: Build ${{ matrix.distro }}
|
- name: Build ${{ matrix.distro }}
|
||||||
run: sudo mkosi --idmap no --secure-boot
|
run: mkosi
|
||||||
|
|
||||||
- name: Show ${{ matrix.distro }} image summary
|
- name: Show ${{ matrix.distro }} image summary
|
||||||
run: sudo mkosi summary
|
run: mkosi summary
|
||||||
|
|
||||||
- name: Boot ${{ matrix.distro }} systemd-nspawn
|
- name: Boot ${{ matrix.distro }} systemd-nspawn
|
||||||
run: sudo mkosi boot ${{ env.KERNEL_CMDLINE }} audit=0
|
run: sudo mkosi boot ${{ env.KERNEL_CMDLINE }} audit=0
|
||||||
@ -111,7 +112,7 @@ jobs:
|
|||||||
run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
|
run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
|
||||||
|
|
||||||
- name: Boot ${{ matrix.distro }} QEMU
|
- name: Boot ${{ matrix.distro }} QEMU
|
||||||
run: sudo timeout -k 30 10m mkosi qemu
|
run: timeout -k 30 10m mkosi qemu
|
||||||
|
|
||||||
- name: Check ${{ matrix.distro }} QEMU
|
- name: Check ${{ matrix.distro }} QEMU
|
||||||
run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
|
run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
|
||||||
|
@ -175,10 +175,6 @@ fi
|
|||||||
cd "$BUILDDIR"
|
cd "$BUILDDIR"
|
||||||
ninja "$@"
|
ninja "$@"
|
||||||
if [ "$WITH_TESTS" = 1 ] ; then
|
if [ "$WITH_TESTS" = 1 ] ; then
|
||||||
for id in 1 2 3; do
|
|
||||||
getent group $id >/dev/null || echo "g testgroup$id $id -" | ./systemd-sysusers -
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -n "$SANITIZERS" ]; then
|
if [ -n "$SANITIZERS" ]; then
|
||||||
export ASAN_OPTIONS="$ASAN_OPTIONS"
|
export ASAN_OPTIONS="$ASAN_OPTIONS"
|
||||||
export UBSAN_OPTIONS="$UBSAN_OPTIONS"
|
export UBSAN_OPTIONS="$UBSAN_OPTIONS"
|
||||||
|
@ -11,8 +11,6 @@ OutputDirectory=mkosi.output
|
|||||||
[Content]
|
[Content]
|
||||||
BuildDirectory=mkosi.builddir
|
BuildDirectory=mkosi.builddir
|
||||||
Cache=mkosi.cache
|
Cache=mkosi.cache
|
||||||
SourceFileTransfer=mount
|
|
||||||
SourceFileTransferFinal=copy-git-others
|
|
||||||
Packages=
|
Packages=
|
||||||
acl
|
acl
|
||||||
bash-completion
|
bash-completion
|
||||||
|
@ -17,3 +17,11 @@ if [ "$(grep '^ID=' /etc/os-release)" = "ID=\"centos\"" ] && [ "$(grep '^VERSION
|
|||||||
alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
||||||
alternatives --set python3 /usr/bin/python3.9
|
alternatives --set python3 /usr/bin/python3.9
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make sure the necessary test users are available in the build image. We do this here because the build
|
||||||
|
# script does not run as root.
|
||||||
|
if [ "$1" = "build" ]; then
|
||||||
|
for id in 1 2 3; do
|
||||||
|
getent group $id >/dev/null || echo "g testgroup$id $id -" | systemd-sysusers -
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user