--- lib/PXElator/config.pm 2010/02/01 14:40:18 498 +++ lib/PXElator/config.pm 2010/02/16 17:50:11 499 @@ -185,6 +185,11 @@ } + my $exported = `exportfs | grep $export`; + if ( $exported ne $export ) { + warn "exportfs $exported\n"; + system "sudo exportfs -i -o rw,async,no_root_squash,no_subtree_check,fsid=999 $ip:$export"; + } my $hostname = client::conf( $ip => 'hostname' ) || 'nfsroot'; file::replace "$export/etc/hostname", $hostname;