@@ -508,6 +508,16 rm -f "${R}/initrd.img" | |||
|
508 | 508 | rm -f "${R}/vmlinuz" |
|
509 | 509 | rm -f "${R}${QEMU_BINARY}" |
|
510 | 510 | |
|
511 | # Remove root .ssh directory if it's empty | |
|
512 | if [ -d "${R}/root/.ssh" ] ; then | |
|
513 | rmdir --ignore-fail-on-non-empty "${R}/root/.ssh" | |
|
514 | fi | |
|
515 | ||
|
516 | # Remove $USER_NAME .ssh directory if it's empty | |
|
517 | if [ -d "${R}/home/${USER_NAME}/.ssh" ] ; then | |
|
518 | rmdir --ignore-fail-on-non-empty "${R}/home/${USER_NAME}/.ssh" | |
|
519 | fi | |
|
520 | ||
|
511 | 521 | # Calculate size of the chroot directory in KB |
|
512 | 522 | CHROOT_SIZE=$(expr `du -s "${R}" | awk '{ print $1 }'`) |
|
513 | 523 |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant