blob: 05c9f3482ab054136b59dd196b1fb2fe76763fe1 [file] [log] [blame] [edit]
rh= hosts.create_host("192.168.1.1")
print rh.run("uname -a").stdout
kernel= deb_kernel.DEBKernel()
kernel.get("/home/foo/linux-2.6.22_2.6.22_amd64.deb")
print kernel.get_version()
print kernel.get_image_name()
print kernel.get_initrd_name()
print "XXXX extracting kernel"
dir= kernel.extract(rh)
print rh.run('ls "%s"' % (sh_escape(dir),))
print "XXXX installing kernel"
kernel.install(rh)
rh.reboot()
rh.wait_up()
print rh.run("uname -a").stdout