Parent Directory | Revision Log | Patch
revision 498 by dpavlin, Mon Feb 1 14:40:18 2010 UTC | revision 499 by dpavlin, Tue Feb 16 17:50:11 2010 UTC | |
---|---|---|
# | Line 185 sub nfsroot { | Line 185 sub nfsroot { |
185 | ||
186 | } | } |
187 | ||
188 | my $exported = `exportfs | grep $export`; | |
189 | if ( $exported ne $export ) { | |
190 | warn "exportfs $exported\n"; | |
191 | system "sudo exportfs -i -o rw,async,no_root_squash,no_subtree_check,fsid=999 $ip:$export"; | |
192 | } | |
193 | ||
194 | my $hostname = client::conf( $ip => 'hostname' ) || 'nfsroot'; | my $hostname = client::conf( $ip => 'hostname' ) || 'nfsroot'; |
195 | file::replace "$export/etc/hostname", $hostname; | file::replace "$export/etc/hostname", $hostname; |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |