cb62bae9b8
Qemu-nbd does not perform well with older versions of qemu due to the lack of writeback caching mode. It also only builds qcow2 images and there is a desire for raw image support. Finally, qemu-nbd makes it very difficult to build images concurrently due to the somewhat opaque nature of how it selects a /dev/nbd# device. losetup, on the other hand, makes this process very straight forward. Change-Id: I309fad8af4fd1e8d1720c17b65e1897a76d5e897 Co-Author: Clint Byrum <clint@fewbar.com>
8 lines
221 B
Bash
Executable file
8 lines
221 B
Bash
Executable file
#!/bin/bash
|
|
# The grub post-kernel install hook will barf if the block device can't be
|
|
# found (as happens in a chroot).
|
|
# Temporarily remove grub, to avoid that confusion.
|
|
|
|
set -e
|
|
|
|
apt-get -y remove grub-pc grub2-common
|