g2testvm: Use gentoo-img instead of stage3img

master
Dustin 2017-04-06 10:47:48 -05:00
parent 07ed5f8ba4
commit 8770997ff9
1 changed files with 2 additions and 3 deletions

View File

@ -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' \