Skip to content

Commit

Permalink
run_qemu.sh: fix broken symlinks System.map and vmlinuz
Browse files Browse the repository at this point in the history
This does not fix #88 at all but clears some of the confusion around it.

Fixes:

```
$ file qbuild/mkosi.extra/boot/*

qbuild/mkosi.extra/boot/System.map:
    broken symbolic link to ./qbuild/mkosi.extra/boot/System.map-6.12.0-dirty
qbuild/mkosi.extra/boot/vmlinuz:
    broken symbolic link to ./qbuild/mkosi.extra/boot/vmlinuz-6.12.0-dirty
```

Fixes commit f9d7330 ("run_qemu: work around new systemd-based
installkernel") which added these symbolic links. They never worked.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb authored and stellarhopper committed Jan 3, 2025
1 parent e6484b7 commit 571357d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ make_install_kernel()

cat arch/x86_64/boot/bzImage > "$inst_path"/vmlinuz-"$kver"
cp System.map "$inst_path"/System.map-"$kver"
ln -fs "$inst_path"/vmlinuz-"$kver" "$inst_path"/vmlinuz
ln -fs "$inst_path"/System.map-"$kver" "$inst_path"/System.map
ln -fs vmlinuz-"$kver" "$inst_path"/vmlinuz
ln -fs System.map-"$kver" "$inst_path"/System.map
}

install_build_initrd()
Expand Down

0 comments on commit 571357d

Please sign in to comment.