git.annexia.org
/
mclu.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
templates: Use shell variables to pass parameters to 'build'.
[mclu.git]
/
templates
/
rawhide.template
1
#!/bin/bash -
2
3
set -e
4
5
case "$1" in
6
probe)
7
echo "hello"
8
;;
9
10
# Build image.
11
build)
12
virt-builder "$base_image" --output "$output" --format "$format" \
13
--hostname "$name" \
14
--install fedora-repos-rawhide \
15
--update \
16
--root-password password:123456 \
17
--selinux-relabel
18
;;
19
20
base-image)
21
echo fedora-21
22
;;
23
24
# Properties.
25
minimum-memory)
26
echo 1G
27
;;
28
recommended-memory)
29
echo 4G
30
;;
31
disk-bus)
32
echo virtio-scsi
33
;;
34
network-model)
35
echo virtio
36
;;
37
38
*)
39
exit 2
40
;;
41
esac