mirror of
https://github.com/rancher/os.git
synced 2025-09-16 06:59:12 +00:00
Merge pull request #1661 from SvenDowideit/pxe-run
run your dev build using pixiecore
This commit is contained in:
11
scripts/run
11
scripts/run
@@ -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
|
||||
|
Reference in New Issue
Block a user