imaging: improve postinstall script update

Replace 3 xmlrpc calls by one.