Skip to content

Commit

Permalink
tests: enable serial output when repacking gadget
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsosanchezbeato committed Jun 12, 2024
1 parent 96794bd commit 19f83e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/prepare-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ repack_and_sign_gadget() {
create_cloud_init_cdimage_config "${gadget_dir}/cloud.conf"
fi

# Show output in serial
cat > "${gadget_dir}/cmdline.extra" << 'EOF'
console=ttyS0 systemd.journald.forward_to_console=1 rd.systemd.journald.forward_to_console=1
EOF

sbattach --remove "$gadget_dir/shim.efi.signed"
sbsign --key "$snakeoil_dir/PkKek-1-snakeoil.key" --cert "$snakeoil_dir/PkKek-1-snakeoil.pem" --output "$gadget_dir/shim.efi.signed" "$gadget_dir/shim.efi.signed"

Expand Down

0 comments on commit 19f83e4

Please sign in to comment.