molecules/scripts/spinbase_openvz_pre_tar_script.sh

11 lines
255 B
Bash
Raw Normal View History

2010-09-17 13:40:17 +02:00
#!/bin/sh
# Copy packages list outside tarball
pkglist_file="${CHROOT_DIR}/etc/sabayon-pkglist"
if [ -f "${pkglist_file}" ]; then
tar_dirname=$(dirname "${TAR_PATH}")
if [ -d "${tar_dirname}" ]; then
cp "${pkglist_file}" "${TAR_PATH}.pkglist"
fi
fi