mirror of
https://github.com/rancher/os.git
synced 2025-09-12 13:17:17 +00:00
Add TPM and MachineRegister support
This commit is contained in:
3
scripts/install-chart
Executable file
3
scripts/install-chart
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
helm -n cattle-rancheros-operator-system upgrade --install --create-namespace rancheros-operator ./chart
|
13
scripts/qemu-in-container
Executable file
13
scripts/qemu-in-container
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" = 0 ]; then
|
||||
exec bash
|
||||
fi
|
||||
|
||||
if [ -e /dev/tpm0 ]; then
|
||||
mkdir /tmp/emulated_tpm
|
||||
swtpm socket --tpmstate dir=/tmp/emulated_tpm --ctrl type=unixio,path=/tmp/emulated_tpm/swtpm-sock --log level=1 --tpm2 &
|
||||
|
||||
exec "$@" -chardev socket,id=chrtpm,path=/tmp/emulated_tpm/swtpm-sock \
|
||||
-tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0
|
||||
fi
|
6
scripts/qemu-wrapper
Executable file
6
scripts/qemu-wrapper
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -x -e
|
||||
|
||||
BASE=$(dirname $0)/..
|
||||
docker build -t ros-qemu -f ${BASE}/Dockerfile.kvm ${BASE}
|
||||
exec docker run -it --rm --net=host -v $(dirname $(pwd)):$(dirname $(pwd)) -w $(pwd) --privileged ros-qemu "$@"
|
@@ -38,7 +38,8 @@ if [ "$1" == "" ] && [ ! -e output.iso ]; then
|
||||
fi
|
||||
|
||||
#-bios /usr/share/qemu/OVMF.fd \
|
||||
qemu-system-x86_64 \
|
||||
|
||||
../scripts/qemu-wrapper qemu-system-x86_64 \
|
||||
$BOOT \
|
||||
-enable-kvm \
|
||||
-m ${MEMORY:=4096} \
|
||||
|
Reference in New Issue
Block a user