diff --git a/util/vm/build.py b/util/vm/build.py index c673132..c7a992a 100755 --- a/util/vm/build.py +++ b/util/vm/build.py @@ -415,9 +415,8 @@ def boot( cow, kernel, initrd, logfile ): # pexpect might not be installed until after depend() is called global pexpect import pexpect - kinfo = run( 'file ' + kernel ) - # Slightly abusing archFor here - arch = archFor( kinfo ) + arch = archFor( kernel ) + log( '* Detected kernel architecture', arch ) if NoKVM: accel = 'tcg' else: