source: live-build/trunk/fuentes/debian/patches/ubuntu-resolvconf.patch @ 900

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

add original source

File size: 785 bytes
  • scripts/build/lb_chroot_resolv

    Description: Remove resolvconf artifacts
      If chroot/etc/resolvconf/resolv.conf.d exists, tidy up the original and
      tail files, which are artifacts of the build (and leak the host system's
      resolv.conf).
    Author: Adam Conrad <adconrad@ubuntu.com>
    Last-Update: 2012-08-20
    
    a b  
    9090                        Truncate chroot/etc/resolv.conf
    9191                fi
    9292
     93                # Clean up resolvconf's pollution
     94                if [ -d chroot/etc/resolvconf/resolv.conf.d ]; then
     95                        rm -f chroot/etc/resolvconf/resolv.conf.d/original
     96                        rm -f chroot/etc/resolvconf/resolv.conf.d/tail
     97                fi
     98
    9399                # Removing stage file
    94100                rm -f .build/chroot_resolv
    95101                ;;
Note: See TracBrowser for help on using the repository browser.