mirror of
https://github.com/rancher/os.git
synced 2025-09-04 00:04:25 +00:00
Initial commit
This commit is contained in:
20
tools/usr/bin/makeiso
Executable file
20
tools/usr/bin/makeiso
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
Reference in New Issue
Block a user