Commit 8a4c35a4 authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-alpine: do not ask for ntp if qemu guest

parent 2f2a5b18
......@@ -16,6 +16,10 @@ get_fqdn() {
echo "${_dn:=my.domain}"
is_qemu() {
grep -q "QEMU" /proc/cpuinfo
usage() {
cat <<__EOF__
usage: setup-alpine [-ha] [-f FILE] [-c FILE]
......@@ -161,7 +165,9 @@ fi
$PREFIX/sbin/setup-sshd ${SSHDOPTS}
$PREFIX/sbin/setup-ntp ${NTPOPTS}
if ! is_qemu; then
$PREFIX/sbin/setup-ntp ${NTPOPTS}
$PREFIX/sbin/setup-disk -q ${DISKOPTS}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment