Browse Source

fix target path for initrd image in probe_initrd_in_boot_and_root

Changelog: None

Signed-off-by: Sylvain <sylvain.joyeux@tidewise.io>
2.1.x
Sylvain 5 years ago
parent
commit
3bc24e459f
  1. 2
      modules/probe.sh

2
modules/probe.sh

@ -218,7 +218,7 @@ probe_initrd_in_boot_and_root() {
for boot in work/rootfs/boot work/boot; do
initrd_image_path=$(probe_initrd_image ${boot})
if [ -n "${initrd_image_path}" ] && [ "${boot}" == "work/boot" ]; then
sudo cp ${initrd_image_path} ${target_rootfs_dir}/boot
sudo cp ${initrd_image_path} work/rootfs/boot
break;
elif [ -n "${initrd_image_path}" ]; then
break;

Loading…
Cancel
Save