Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 163:9aef3f0e4d1c
Do not expand ./boot also when expanding base.txz
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Fri, 22 Nov 2019 12:01:36 +0100 |
| parents | 9bd38c55a75c |
| children | b62b8bc6184f |
comparison
equal
deleted
inserted
replaced
| 162:9bd38c55a75c | 163:9aef3f0e4d1c |
|---|---|
| 218 if [ ! -r "${_basetxz}" ]; then | 218 if [ ! -r "${_basetxz}" ]; then |
| 219 echo "ERROR: file \`${_basetxz}' is not readable" >&2 | 219 echo "ERROR: file \`${_basetxz}' is not readable" >&2 |
| 220 return 1 | 220 return 1 |
| 221 fi | 221 fi |
| 222 | 222 |
| 223 tar -C "${_mp}" --exclude=./var/empty -xJp -f "${_basetxz}" || { echo "ERROR: tar encountered errors" >&2; return 1; } | 223 tar -C "${_mp}" --exclude=./var/empty --exclude=./boot -xJp -f "${_basetxz}" || { echo "ERROR: tar encountered errors" >&2; return 1; } |
| 224 } | 224 } |
| 225 | 225 |
| 226 | 226 |
| 227 # | 227 # |
| 228 # "copy" -- ZFS copy of datasets | 228 # "copy" -- ZFS copy of datasets |
