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

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

add original source

File size: 1.2 KB
  • scripts/build/lb_chroot

    Description: Tidy up linux-headers installation and duplication
     ubuntu-chroot_headers_tidy.patch: Mark all the linux-headers-$(ABI)
     packages as autoinstalled, and then autoremove cruft (LP: #1029556)
    Author: Adam Conrad <adconrad@ubuntu.com>
    Bug-Ubuntu: https://bugs.launchpad.net/bugs/1029556
    Forwarded: no
    Last-Update: 2012-08-20
    
    a b  
    6262
    6363        if [ "${_PASS}" = install ]
    6464        then
     65                Chroot chroot "dpkg -l linux-headers-3* linux-headers-4*" 2>/dev/null \
     66                        | awk '/^i/ {print $2}' > chroot.headers
     67                for i in $(cat chroot.headers); do
     68                        Chroot chroot "apt-mark auto $i"
     69                done
     70                Chroot chroot "apt-get --purge -y autoremove"
    6571                Chroot chroot "dpkg-query -W" > chroot.packages.install
    6672        fi
    6773done
  • scripts/build/lb_clean

    a b  
    8888                        ${LB_ROOT_COMMAND} rm -rf chroot chroot.tmp
    8989
    9090                        rm -f chroot.packages.live chroot.packages.install
     91                        rm -f chroot.headers
    9192
    9293                        rm -f .build/chroot*
    9394                        ;;
Note: See TracBrowser for help on using the repository browser.