summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2007-09-29 04:07:01 +0000
committererdgeist <erdgeist@erdgeist.org>2007-09-29 04:07:01 +0000
commit9064f3e18b05ba496fa819ae42e2a85e5998eb1c (patch)
treec7055b14511e947c57fba3cd202c6aed66f63234 /ezjail-admin
parentfe1cec69fed6cfe4e86bbbdd0d8690bd2585a80e (diff)
We'll be using pax to archive
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin10
1 files changed, 5 insertions, 5 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 4228e1e..3190e7b 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -703,7 +703,7 @@ console)
703######################## ezjail-admin ARCHIVE ######################## 703######################## ezjail-admin ARCHIVE ########################
704archive) 704archive)
705 # Clean variables, prevent polution 705 # Clean variables, prevent polution
706 unset ezjail_archive ezjail_force ezjail_taroption 706 unset ezjail_archive ezjail_force
707 707
708 shift; while getopts :fr:d: arg; do case ${arg} in 708 shift; while getopts :fr:d: arg; do case ${arg} in
709 f) ezjail_force=${OPTARG};; 709 f) ezjail_force=${OPTARG};;
@@ -730,13 +730,13 @@ archive)
730 ezjail_archive="${ezjail_archivedir%/}"/"${ezjail_archive}" 730 ezjail_archive="${ezjail_archivedir%/}"/"${ezjail_archive}"
731 731
732 case ${ezjail_archive} in 732 case ${ezjail_archive} in
733 *.tar.bz|*.tar.bz2|*.tbz|*.tar.bzip ) ezjail_taroption="j" ;; 733 *.tar.gz|*.tgz) ;;
734 *.tar.gz|*.tgz|*.tar.gzip) ezjail_taroption="z" ;; 734 *) ezjail_archive="${ezjail_archive}.tar.gz" ;;
735 *.tar) ;;
736 *) ezjail_archive="${ezjail_archive}.tar" ;;
737 esac; 735 esac;
738 736
739# TODO: tar cpf${ezjail_taroption} ${ezjail_archive} --atime-preserve --one-file-system ${ezjail_config} -C ${ezjail_root} 737# TODO: tar cpf${ezjail_taroption} ${ezjail_archive} --atime-preserve --one-file-system ${ezjail_config} -C ${ezjail_root}
738 cd ${ezjail_root} || exerr "Error: can't cd to ${ezjail_root}
739 pax -wXtz -x ustar -f ${ezjail_archive} -s/^/ezjail\// .
740 740
741 ;; 741 ;;
742######################## ezjail-admin CONFIG ######################## 742######################## ezjail-admin CONFIG ########################