Make archive use the cpio archive format. Also fix some Warning message.
This commit is contained in:
parent
8420b5c98f
commit
3590f5daf3
@ -991,7 +991,7 @@ archive)
|
||||
|
||||
# If jail is still running, refuse to go any further - unless forced
|
||||
if [ "${ezjail_id}" -a -z "${ezjail_force}" ]; then
|
||||
echo -e "Warning: Jail ${ezjail_name} appears to be still running.\n Stop it first, or use '${ezjail_admin} -f ${ezjail_name}' to force archiving."
|
||||
echo -e "Warning: Jail ${ezjail_name} appears to be still running.\n Stop it first, or use '${ezjail_admin} archive -f ${ezjail_name}' to force archiving."
|
||||
continue
|
||||
fi
|
||||
|
||||
@ -1036,7 +1036,7 @@ archive)
|
||||
[ -f "/etc/fstab.${ezjail_safename}" ] && ezjail_addfiles=/etc/fstab.${ezjail_safename}
|
||||
|
||||
cd "${ezjail_rootdir}" || exerr "Error: Can't cd to ${ezjail_root}."
|
||||
pax -wzXt -x posix ${ezjail_archive_opt} \
|
||||
pax -wzXt -x cpio ${ezjail_archive_opt} \
|
||||
-s:"^[^\\.].*/${ezjail_safename}\$":prop.ezjail-${ezjail_archive_tag}: \
|
||||
-s:"^[^\\.].*/${ezjail_safename}.norun\$":prop.ezjail-${ezjail_archive_tag}.norun: \
|
||||
-s:"etc/fstab.${ezjail_safename}\$":fstab.ezjail: \
|
||||
|
Loading…
x
Reference in New Issue
Block a user