unused variable removed
second part of libnvpair port
more bootadm rewrites