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