Skip to content

Commit 05e990c

Browse files
committed
GHA: run mkosi with sudo
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/runner/work/_actions/systemd/mkosi/bbe715f42911f9660712377a5b39335b9391ae22/mkosi/__main__.py", line 60, in <module> main() File "/usr/lib/python3.12/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/_actions/systemd/mkosi/bbe715f42911f9660712377a5b39335b9391ae22/mkosi/__main__.py", line 52, in main run_verb(args, images) File "/home/runner/work/_actions/systemd/mkosi/bbe715f42911f9660712377a5b39335b9391ae22/mkosi/__init__.py", line 2789, in run_verb become_root() File "/home/runner/work/_actions/systemd/mkosi/bbe715f42911f9660712377a5b39335b9391ae22/mkosi/run.py", line 125, in become_root os.setresuid(0, 0, 0) PermissionError: [Errno 1] Operation not permitted (cherry picked from commit f47a460)
1 parent 70dfddd commit 05e990c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/mkosi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,16 @@ jobs:
142142
/usr/lib/systemd/systemd-keyutil --version
143143
144144
- name: Generate secure boot key
145-
run: mkosi --debug genkey
145+
run: sudo mkosi --debug genkey
146146

147147
- name: Show ${{ matrix.distro }} image summary
148-
run: mkosi summary
148+
run: sudo mkosi summary
149149

150150
- name: Build ${{ matrix.distro }}
151-
run: mkosi --debug
151+
run: sudo mkosi --debug
152152

153153
- name: Boot ${{ matrix.distro }} systemd-nspawn
154154
run: test "$(sudo mkosi --debug boot 1>&2; echo $?)" -eq 123
155155

156156
- name: Boot ${{ matrix.distro }} QEMU
157-
run: timeout -k 30 10m test "$(mkosi --debug qemu 1>&2; echo $?)" -eq 123
157+
run: timeout -k 30 10m test "$(sudo mkosi --debug qemu 1>&2; echo $?)" -eq 123

0 commit comments

Comments
 (0)