Revision d6da13d4 util/vm/build.py

View differences:

util/vm/build.py
484 484
    log( '* Waiting for login...' )
485 485

  
486 486

  
487
def disableNtpd( vm, prompt=Prompt, ntpserver='pool.ntp.org' ):
488
    "Turn off ntpd and set clock from pool.ntp.org"
487
def disableNtpd( vm, prompt=Prompt ):
488
    "Turn off ntpd and set clock immediately"
489 489
    log( '* Turning off ntpd' )
490 490
    vm.sendline( 'sudo -n service ntp stop' )
491 491
    vm.expect( prompt )
492
    log( '* Setting clock from', ntpserver  )
492
    log( '* Setting clock' )
493 493
    # -gq: set and quit immediately
494
    vm.sendline( 'sudo -n ntpd -gq ' + ntpserver )
494
    vm.sendline( 'sudo -n ntpd -gq' )
495 495
    vm.expect( prompt )
496 496
    log( '* Waiting one second and running date command' )
497 497
    vm.sendline( 'sleep 1 && date ' )

Also available in: Unified diff