Skip to content

Commit 02fb561

Browse files
committed
tests: Use systemd-i128 over uuidgen
`just test-composefs` fails in the new default devcontainer ref <https://github.com/bootc-dev/infra/blob/main/common/.devcontainer> without this. Signed-off-by: Colin Walters <[email protected]>
1 parent 8e83e3a commit 02fb561

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/build-sealed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if test -z "${secureboot}"; then
2828
cd $secureboot
2929
if test '!' -f db.cer; then
3030
echo "Generating test Secure Boot keys"
31-
uuidgen --random > GUID.txt
31+
systemd-id128 new -u > GUID.txt
3232
openssl req -quiet -newkey rsa:4096 -nodes -keyout PK.key -new -x509 -sha256 -days 3650 -subj '/CN=Test Platform Key/' -out PK.crt
3333
openssl x509 -outform DER -in PK.crt -out PK.cer
3434
openssl req -quiet -newkey rsa:4096 -nodes -keyout KEK.key -new -x509 -sha256 -days 3650 -subj '/CN=Test Key Exchange Key/' -out KEK.crt

tmt/tests/examples/bootc-uki/build.final

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [[ ! -d "secureboot" ]]; then
1919
echo "Generating test Secure Boot keys"
2020
mkdir secureboot
2121
pushd secureboot > /dev/null
22-
uuidgen --random > GUID.txt
22+
systemd-id128 new -u > GUID.txt
2323
openssl req -newkey rsa:4096 -nodes -keyout PK.key -new -x509 -sha256 -days 3650 -subj "/CN=Test Platform Key/" -out PK.crt
2424
openssl x509 -outform DER -in PK.crt -out PK.cer
2525
openssl req -newkey rsa:4096 -nodes -keyout KEK.key -new -x509 -sha256 -days 3650 -subj "/CN=Test Key Exchange Key/" -out KEK.crt

0 commit comments

Comments
 (0)