mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
fix disappearing vmlinuz_hd.vblock problem
Review URL: http://codereview.chromium.org/2905001
This commit is contained in:
parent
edf039490e
commit
71ff3fc632
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user