Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4978433d authored by Robert Nelson's avatar Robert Nelson
Browse files

chroot: protect against kernel install failure


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 8b365b8f
No related merge requests found
...@@ -807,6 +807,11 @@ fi ...@@ -807,6 +807,11 @@ fi
if ls ${tempdir}/boot/vmlinuz-* >/dev/null 2>&1 ; then if ls ${tempdir}/boot/vmlinuz-* >/dev/null 2>&1 ; then
sudo mv -v ${tempdir}/boot/vmlinuz-* ${DIR}/deploy/${export_filename}/ sudo mv -v ${tempdir}/boot/vmlinuz-* ${DIR}/deploy/${export_filename}/
else
if [ "${chroot_KERNEL_HTTP_DIR}" ] ; then
echo "Log: ERROR: kernel install failure..."
exit 1
fi
fi fi
if ls ${tempdir}/boot/initrd.img-* >/dev/null 2>&1 ; then if ls ${tempdir}/boot/initrd.img-* >/dev/null 2>&1 ; then
......
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