g2testvm: Use gentoo-img instead of stage3img
parent
07ed5f8ba4
commit
8770997ff9
|
@ -3,7 +3,7 @@
|
|||
name=${NAME:-${PREFIX:-Test-}$(uuidgen | cut -c -6)}
|
||||
hostname=${name:l}
|
||||
|
||||
: ${STAGEDIR:=~/.cache/stage3s}
|
||||
: ${STAGEDIR:=/mnt/downloads/Gentoo/stage3s}
|
||||
: ${STAGEARCH:=amd64}
|
||||
: ${POOL:=default}
|
||||
: ${KVER:=4.4.6}
|
||||
|
@ -54,8 +54,7 @@ if [[ ! -f ${ssh_key} ]]; then
|
|||
fi
|
||||
|
||||
printf 'Creating %s from %s\n' "${pooldir}/${name}.img" "${stagetbz}"
|
||||
stage3img "${stagetbz}" "${pooldir}/${name}.img" \
|
||||
-i ${ssh_key} \
|
||||
gentoo-img "${stagetbz}" "${pooldir}/${name}.img" \
|
||||
-L ${hostname} \
|
||||
-V '/=2G;;;ro,noatime,discard' \
|
||||
-V '/var/log=512M;;;noatime,discard' \
|
||||
|
|
Loading…
Reference in New Issue