Pass -L --dereference to the copy commands (follows symlinks)

If the host has symlinks, they must be followed when copy them into the chroot.
parent c109ac4b
......@@ -111,8 +111,8 @@ stages:
- docker export ${CONTAINER_ID} | tar -C ${CHROOT_PATH} -xf -
- mknod -m 666 ${CHROOT_PATH}/dev/urandom c 1 9
- mkdir -p ${CHROOT_PATH}/etc-target/apt/sources.list.d ${CHROOT_PATH}/etc-target/apt/preferences.d
- cp -aTv /etc/apt/sources.list.d ${CHROOT_PATH}/etc-target/apt/sources.list.d
- cp -aTv /etc/apt/preferences.d ${CHROOT_PATH}/etc-target/apt/preferences.d
- cp -aTLv /etc/apt/sources.list.d ${CHROOT_PATH}/etc-target/apt/sources.list.d
- cp -aTLv /etc/apt/preferences.d ${CHROOT_PATH}/etc-target/apt/preferences.d
- |
for PACKAGE in $(ls ${WORKING_DIR}/*.deb); do
piuparts --scriptsdir /etc/piuparts/scripts --allow-database --warn-on-leftovers-after-purge --hard-link -e ${CHROOT_PATH} ${PACKAGE}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment