diff options
author | Daniel Baumann <daniel@debian.org> | 2012-02-04 22:35:39 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-02-06 23:15:13 +0100 |
commit | d9a0202d1b1958a9e91601886d36ac50fca22d45 (patch) | |
tree | b4517b649f39144fdc9d1996cebc2958d15742d4 | |
parent | 7e1fc7431c2324cc5c633897ddd2036e08a13ffc (diff) | |
download | vyos-live-build-d9a0202d1b1958a9e91601886d36ac50fca22d45.tar.gz vyos-live-build-d9a0202d1b1958a9e91601886d36ac50fca22d45.zip |
Dereferencing potential symlinked apt preference files in chroot_apt/*.pref.
-rwxr-xr-x | scripts/build/lb_chroot_apt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/lb_chroot_apt b/scripts/build/lb_chroot_apt index f981c5298..95c6159cc 100755 --- a/scripts/build/lb_chroot_apt +++ b/scripts/build/lb_chroot_apt @@ -117,7 +117,7 @@ case "${1}" in mv chroot/etc/apt/preferences.d/$(basename ${_FILE}) chroot/etc/apt/preferences.d/$(basename ${_FILE}).orig fi - cp ${_FILE} chroot/etc/apt/preferences.d + cp -aL ${_FILE} chroot/etc/apt/preferences.d done fi @@ -270,7 +270,7 @@ EOF mv chroot/etc/apt/preferences.d/$(basename ${_FILE}) chroot/etc/apt/preferences.d/$(basename ${_FILE}).orig fi - cp ${_FILE} chroot/etc/apt/preferences.d + cp -aL ${_FILE} chroot/etc/apt/preferences.d if [ -f chroot/etc/apt/preferences.d/$(basename ${_FILE}) ] then |