Commit b96bd123 authored by Jonathan Swaelens's avatar Jonathan Swaelens

🚑 fix(nsfroot-hooks): It look that FAI need the real initrd and...

🚑 fix(nsfroot-hooks): It look that FAI need the real initrd and vmlinuz with version for booting

It look that FAI need the real initrd and vmlinuz with version for booting
Signed-off-by: default avatarJonathan Swaelens <swaelens.jonathan@opensides.be>
parent cbb61900
......@@ -134,6 +134,7 @@ if [ -n "$TFTPROOT_EFI32" ]; then
vmlinuxName=vmlinuz-install
fi
cp -f "$TFTPROOT"/vmlinuz-"$version" "$TFTPROOT_EFI32"/vmlinuz-"$version"
cp -f "$TFTPROOT"/vmlinuz-"$version" "$TFTPROOT_EFI32"/"$vmlinuxName"
else
msg "ERROR: cannot find kernel to use as vmlinuz-install!!!"
......@@ -150,6 +151,7 @@ if [ -n "$TFTPROOT_EFI32" ]; then
initrdName=initrd.img-install
fi
cp -f "$TFTPROOT"/initrd.img-"$version" "$TFTPROOT_EFI32"/initrd.img-"$version"
cp -f "$TFTPROOT"/initrd.img-"$version" "$TFTPROOT_EFI32"/"$initrdName"
else
msg "ERROR: cannot find initrd image to use as initrd.img-xx !!!"
......@@ -169,6 +171,7 @@ if [ -n "$TFTPROOT_EFI64" ]; then
vmlinuxName=vmlinuz-install
fi
cp -f "$TFTPROOT"/vmlinuz-"$version" "$TFTPROOT_EFI64"/vmlinuz-"$version"
cp -f "$TFTPROOT"/vmlinuz-"$version" "$TFTPROOT_EFI64"/"$vmlinuxName"
else
msg "ERROR: cannot find kernel to use as vmlinuz-install!!!"
......@@ -185,6 +188,7 @@ if [ -n "$TFTPROOT_EFI64" ]; then
initrdName=initrd.img-install
fi
cp -f "$TFTPROOT"/initrd.img-"$version" "$TFTPROOT_EFI64"/initrd.img-"$version"
cp -f "$TFTPROOT"/initrd.img-"$version" "$TFTPROOT_EFI64"/"$initrdName"
else
msg "ERROR: cannot find initrd image to use as initrd.img-xx !!!"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment