]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/build: Fix broken copy command in genimage.sh when making isoimage
authorNir Lichtman <nir@lichtman.org>
Fri, 10 Jan 2025 12:05:00 +0000 (12:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:06 +0000 (11:13 +0200)
commit15797a7c74e7500456b3e9f602b216ecf9b762e8
treedfb6caba34f633981e739ec413c595bdffa2bd79
parent0dfa4c546f5e0f252a7d57a0f1fc9d00c3740315
x86/build: Fix broken copy command in genimage.sh when making isoimage

[ Upstream commit e451630226bd09dc730eedb4e32cab1cc7155ae8 ]

Problem: Currently when running the "make isoimage" command there is an
error related to wrong parameters passed to the cp command:

  "cp: missing destination file operand after 'arch/x86/boot/isoimage/'"

This is caused because FDINITRDS is an empty array.

Solution: Check if FDINITRDS is empty before executing the "cp" command,
similar to how it is done in the case of hdimage.

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Michal Marek <michal.lkml@markovi.net>
Link: https://lore.kernel.org/r/20250110120500.GA923218@lichtman.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/boot/genimage.sh