You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
897 B

  1. --- a/templates/lxc-download.in
  2. +++ b/templates/lxc-download.in
  3. @@ -384,20 +384,7 @@ fi
  4. # Unpack the rootfs
  5. echo "Unpacking the rootfs"
  6. -EXCLUDES=""
  7. -excludelist=$(relevant_file excludes)
  8. -if [ -f "${excludelist}" ]; then
  9. - while read -r line; do
  10. - EXCLUDES="${EXCLUDES} --exclude=${line}"
  11. - done < "${excludelist}"
  12. -fi
  13. -
  14. -# Do not surround ${EXCLUDES} by quotes. This does not work. The solution could
  15. -# use array but this is not POSIX compliant. The only POSIX compliant solution
  16. -# is to use a function wrapper, but the latter can't be used here as the args
  17. -# are dynamic. We thus need to ignore the warning brought by shellcheck.
  18. -# shellcheck disable=SC2086
  19. -tar --anchored ${EXCLUDES} --numeric-owner -xpJf "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
  20. +tar --numeric-owner -xpJf "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
  21. mkdir -p "${LXC_ROOTFS}/dev/pts/"