mirror of
https://github.com/rancher/os.git
synced 2025-07-19 17:39:04 +00:00
21 lines
343 B
Plaintext
21 lines
343 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
IMAGE=$1
|
||
|
|
||
|
if [ -z "$IMAGE" ]; then
|
||
|
echo "Image name is required as the first argument"
|
||
|
echo
|
||
|
echo Usage: $0 [DOCKER_IMAGE]
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cd /iso
|
||
|
cat > values.yaml << EOF
|
||
|
image: "$IMAGE"
|
||
|
EOF
|
||
|
|
||
|
luet build --values values.yaml iso/rootfs
|
||
|
luet create-repo
|
||
|
luet-makeiso iso.yaml --local /iso/build
|
||
|
cp distro*iso /output.iso
|