1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 15:09:27 +00:00

run your dev build using pixiecore

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-06 12:54:39 +10:00
parent d26d20d730
commit b2e0510697

View File

@@ -22,6 +22,9 @@ while [ "$#" -gt 0 ]; do
QIND=0
REBUILD=0
;;
--pxe)
BOOT_PXE=1
;;
--append)
shift 1
QEMU_APPEND="${QEMU_APPEND} $1"
@@ -123,6 +126,14 @@ if [ "$RM_USR" == "1" ]; then
KERNEL_ARGS="${KERNEL_ARGS} rancher.rm_usr"
fi
if [ "$BOOT_PXE" == "1" ]; then
sudo pixiecore boot \
"${KERNEL}" \
"${INITRD}" \
--cmdline="${KERNEL_ARGS}"
return 0
fi
if [ "$KVM" == "" ] && [ -c /dev/kvm ] && [ -r /dev/kvm ] && [ -w /dev/kvm ]; then
KVM=1
fi