1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Speed up build and run tests

This commit is contained in:
Darren Shepherd
2016-05-22 23:11:26 -07:00
parent dd7b2554e7
commit d34ead2fbf
15 changed files with 87 additions and 65 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -e
# help: build and run RancherOS, requires KVM local
cd $(dirname $0)/..
@@ -108,7 +109,7 @@ if [[ ! -e ${KERNEL} || ! -e ${INITRD_SRC} ]]; then
exit 1
fi
if [ "$REBUILD" == "1" ]; then
if [ "$REBUILD" == "1" ] || [ ! -e ${INITRD} ]; then
cp bin/ros ${INITRD_SRC}/usr/bin/ros
pushd ${INITRD_SRC} >/dev/null
find . | cpio -H newc -o | gzip -1 > ${INITRD}
@@ -157,6 +158,7 @@ if [ "$QEMU" == "1" ]; then
CPU="-cpu host"
fi
set -x
HOME=${HOME:-/}
exec qemu-system-${QEMUARCH} -serial stdio \
-rtc base=utc,clock=host \
${KVM_ENABLE} \