source: live-build/trunk/fuentes/debian/patches/chroot-resolv-conf-allow-symlinks @ 900

Last change on this file since 900 was 900, checked in by kbut, 4 years ago

add original source

File size: 934 bytes
Line 
1Description: Allow symlinks for config/includes.chroot/etc/resolv.conf
2 Backport from the 4.0 branch to allow symlinks for
3 config/includes.chroot/etc/resolv.conf so that a image can have a
4 symlink to /run/resolvconf/resolv.conf
5Author: Michael Vogt <michael.vogt@ubuntu.com>
6
7---
8Origin: vendor
9Forwarded: not-needed
10Last-Update: 2014-10-29
11
12Index: live-build-3.0~a57/scripts/build/lb_chroot_resolv
13===================================================================
14--- live-build-3.0~a57.orig/scripts/build/lb_chroot_resolv
15+++ live-build-3.0~a57/scripts/build/lb_chroot_resolv
16@@ -76,7 +76,7 @@ case "${1}" in
17                # Creating lock file
18                Create_lockfile .lock
19 
20-               if [ -e config/includes.chroot/etc/resolv.conf ]
21+               if [ -e config/includes.chroot/etc/resolv.conf ] ||  [ -L config/includes.chroot/etc/resolv.conf ];
22                then
23                        # Copying local resolv.conf
24                        cp -a config/includes.chroot/etc/resolv.conf chroot/etc/resolv.conf
Note: See TracBrowser for help on using the repository browser.