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

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

add original source

File size: 1.5 KB
  • scripts/build/lb_chroot_hacks

    Description: Drop etc/adjtime from scripts/build/lb_chroot_hacks.
     /etc/adjtime is not  needed and should not be used in Ubuntu.
    Author: Steve Langasek <steve.langasek@ubuntu.com>
    Forwarded: no
    Last-Update: 2013-09-27
    
    old new esac 
    218218# people might do in local hooks, and there might be no initrds at all.
    219219find chroot/boot -name 'initrd*' -print0 | xargs -r -0 chmod go+r
    220220
    221 # Remove build systems clock drift
    222 echo "0.0 0 0.0" > chroot/etc/adjtime
    223 
    224221# Remove cruft
    225222rm -f chroot/boot/initrd*bak*
    226223rm -f chroot/etc/apt/trusted.gpg~
    rm -f chroot/etc/gshadow- chroot/etc/sha 
    229226rm -f chroot/var/cache/debconf/*-old
    230227rm -f chroot/var/lib/dpkg/*-old
    231228rm -f chroot/var/log/apt/term.log
     229rm -f chroot/etc/adjtime
    232230
    233231# Delete and re-create temporary directories
    234232TEMP_DIRS="/tmp /var/tmp"
    then 
    277275        done
    278276
    279277        # Config files which need to be RW
    280         COW_FILES="/etc/adjtime /etc/fstab /etc/hostname /etc/hosts /etc/live.conf /etc/network/interfaces /etc/resolv.conf /etc/udev/rules.d/*persistent-net.rules /etc/udev/rules.d/*persistent-cd.rules /etc/X11/xorg.conf"
     278        COW_FILES="/etc/fstab /etc/hostname /etc/hosts /etc/live.conf /etc/network/interfaces /etc/resolv.conf /etc/udev/rules.d/*persistent-net.rules /etc/udev/rules.d/*persistent-cd.rules /etc/X11/xorg.conf"
    281279
    282280        # Where we will store RW config files
    283281        RW_DIRECTORY="/var/lib/live"
Note: See TracBrowser for help on using the repository browser.