Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_qemu.sh: drop mkosi --autologin, use systemd credentials instead #113

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions run_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,14 @@ build_kernel_cmdline()
"efi_fake_mem=2G@10G:0x40000"
)
fi
if [[ $_arg_gcp == "off" ]]; then
# https://systemd.io/CREDENTIALS/
# This requires systemd v251 or above (commit 4b9a4b017, April 2022)
kcmd+=(
systemd.set_credential=agetty.autologin:root
systemd.set_credential=login.noauth:yes
)
fi

tot_mem="$(((_arg_mem_size / 1024) * (num_mems + num_nodes)))" # in GiB
if (( num_legacy_pmems > 0 )); then
Expand Down Expand Up @@ -1189,10 +1197,6 @@ make_rootfs()
setup_depmod "mkosi.extra"
setup_autorun "mkosi.extra"

if [[ $_arg_gcp == "off" ]]; then
mkosi_opts+=("--autologin")
fi

if [[ $_arg_debug == "on" ]]; then
# In case of yet another mkosi incompatibility or other issue,
# enable this line. WARNING: --debug options have "stability" issues
Expand Down
Loading