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: add some missing quotes #91

Merged
merged 1 commit into from
Dec 18, 2024
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
14 changes: 8 additions & 6 deletions run_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,10 @@ make_install_kernel()
{
local inst_path="$1"

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
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
}

install_build_initrd()
Expand Down Expand Up @@ -520,7 +520,7 @@ __build_kernel()

if [[ $_arg_kern_selftests == "on" ]]; then
selftests_dir=$(readlink -f "$inst_prefix")/$selftests_home
make $quiet -j"$num_build_cpus" -C tools/testing/selftests install INSTALL_PATH=$selftests_dir
make $quiet -j"$num_build_cpus" -C tools/testing/selftests install INSTALL_PATH="$selftests_dir"
fi

if [[ $_arg_gdb == "on" ]]; then
Expand Down Expand Up @@ -854,6 +854,8 @@ setup_depmod()
echo "not found: $system_map. Try rebuilding with '-r img'"
return 1
fi
: Warning: symlinks created by this depmod do not survive the move
: to the virtual machine
sudo depmod -b "$prefix" -F "$system_map" -C "$depmod_dir" "$kver"
}

Expand Down Expand Up @@ -903,7 +905,7 @@ __update_existing_rootfs()

selftests_dir=$(readlink -f "$inst_prefix")/$selftests_home
if [[ $_arg_kern_selftests == "on" ]]; then
sudo make -j"$num_build_cpus" -C tools/testing/selftests install INSTALL_PATH=$selftests_dir
sudo make -j"$num_build_cpus" -C tools/testing/selftests install INSTALL_PATH="$selftests_dir"
else
sudo rm -rf "$selftests_dir"
fi
Expand Down