| 507 |
echo "This may take a long time." |
echo "This may take a long time." |
| 508 |
|
|
| 509 |
if [ $sshpreserve = 1 ]; then |
if [ $sshpreserve = 1 ]; then |
| 510 |
|
[ "$verbose" ] && echo "Preserving root/.ssh directory from inside the nfroot." |
| 511 |
# save old .ssh directory |
# save old .ssh directory |
| 512 |
tmptar=$(mktemp) || exit 12 |
tmptar=$(mktemp) || exit 12 |
| 513 |
# should we set the umask before? Does it influence the other parts? |
# should we set the umask before? Does it influence the other parts? |
| 514 |
tar -C $NFSROOT -cvf $tmptar root/.ssh |
tar -C $NFSROOT -cf $tmptar root/.ssh |
| 515 |
fi |
fi |
| 516 |
|
|
| 517 |
# Kill the directory if not in recover mode |
# Kill the directory if not in recover mode |