fix disappearing vmlinuz_hd.vblock problem

Review URL: http://codereview.chromium.org/2905001
This commit is contained in:
Tien-Ren Chen 2010-07-08 15:27:59 +08:00
parent edf039490e
commit 71ff3fc632

View File

@ -318,16 +318,7 @@ make_image_bootable() {
# create_base_image(). However, it could break the build if it is a clean
# build because vmlinuz_hd.vblock hasn't been created by build_kernel_image.sh
if [[ "${ARCH}" = "x86" ]]; then
STATEFUL_LOOP_DEV=$(sudo losetup -f)
if [ -z "${STATEFUL_LOOP_DEV}" ] ; then
echo "No free loop device. Free up a loop device or reboot. exiting. "
exit 1
fi
sudo losetup "${STATEFUL_LOOP_DEV}" "${STATEFUL_FS_IMG}"
sudo mount "${STATEFUL_LOOP_DEV}" "${STATEFUL_FS_DIR}"
sudo cp "${OUTPUT_DIR}/vmlinuz_hd.vblock" "${STATEFUL_FS_DIR}"
sudo umount -d "${STATEFUL_FS_DIR}"
STATEFUL_LOOP_DEV=
fi
# START_KERN_A is set by the first call to install the gpt.