Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Commits on Oct 21, 2010
  1. @alonswartz

    Merge commit 'liraz/master'

    alonswartz authored
Commits on Oct 20, 2010
  1. print "chroot execute" to stderr

    Liraz Siri authored
    rational: this makes it easier to use the standard output from a chroot command
    without having to filter this out.
  2. @alonswartz

    added 'status' to mysql upstart workaround

    alonswartz authored
        - required when using the depreciated call: /etc/init.d/mysql stop
          as it checks for mysql status via upstart before attempting to
          stop mysql
Commits on Aug 4, 2010
Commits on Jul 29, 2010
  1. mysql upstart workaround

    Liraz Siri authored
    The problem?
    """Upstart jobs cannot be run in a chroot:
    Upstart jobs cannot be started in a chroot because upstart acts as a
    service supervisor, and processes within the chroot are unable to
    communicate with the upstart running outside of the chroot (430224).
    This will cause some packages that have been converted to use upstart
    jobs instead of init scripts to fail to upgrade within a chroot. Users
    are advised to configure their chroots with /sbin/initctl pointing to
    /bin/true, with the following commands run within the chroot:
    dpkg-divert --local --rename --add /sbin/initctl
    ln -s /bin/true /sbin/initctl"""
    In other words, starting an upstart job inside a chroot actually starts
    it outside the chroot. Upstart uses dbus to communicate with processes,
    and dbus uses unix sockets in the abstract namespace, which transcends
    the filesystem, and thus, chroot.
  2. added (tklpatch) to shell prompt

    Liraz Siri authored
    rational: make it easier to tell that you're in a chroot
  3. moved resolv.conf handling to tklpatch-chroot

    Liraz Siri authored
    rational: that way it works when you're messing with stuff manually
Commits on Mar 25, 2010
  1. @alonswartz
Commits on Feb 16, 2010
  1. @alonswartz

    release notes for v0.93

    alonswartz authored
  2. @alonswartz

    support applying patch in running system: tklpatch-apply / patch.tar.gz

    alonswartz authored
    - required fixes:
        - support rootfs as "/" (slashchop)
        - don't apply resolv.conf workaround
        - don't mount proc/devpts
Commits on Feb 10, 2010
  1. @alonswartz

    release notes for v0.92

    alonswartz authored
  2. @alonswartz

    prepare-cdroot cdroot-dir is now optional

    alonswartz authored
        - support more use cases (e.g., using tklpatch to package a rootfs that
          was not extracted from an iso using tklpatch-extractiso)
        - if cdroot-dir is not provided, a minimal isolinux.cfg will be created
          to automatically boot the image
Commits on Feb 9, 2010
  1. @alonswartz
  2. @alonswartz

    copy advanced conf hooks directory (not only script) to rootfs prior …

    alonswartz authored
    …to execution
        - provides ability to include generic helper functions or scripts (DRY)
        - for example:
            - functions file that includes code snippets common to several hooks
            - modularization, cleaner implementation, code re-use
        apt-get update
        DEBIAN_FRONTEND=noninteractive apt-get -y \
            -o DPkg::Options::=--force-confdef \
            -o DPkg::Options::=--force-confold \
            install $@
    source $(dirname $0)/functions
    install hello
  3. @alonswartz

    bugfix: execute simple conf_script if executable AND file

    alonswartz authored
        - bash expression -x will return True if directory
    - made code more readable using conf_dir variable
    - added chopslash to clean paths passed by user when running manually
Commits on Feb 8, 2010
  1. @alonswartz

    added support for configuration hooks (advanced usage)

    alonswartz authored
    Advanced usage (configuration hooks):
        The configuration script 'conf' can be replaced with a conf directory
        containing the following configuration script hooks to be executed in
        the chroot (rootfs):
            conf/pre-debs       # executed before apply-debs
            conf/post-debs      # executed after apply-debs
            conf/pre-overlay    # executed before apply-overlay
            conf/post-overlay   # executed after apply-overlay
    This is a backwards compatible change, and is optional.
Commits on Feb 3, 2010
  1. @alonswartz

    reverted "install debs after conf script"

    alonswartz authored
    commit a42944b
    commit 5585fe7
        - installing debs/ after conf doesn't allow for package customization
  2. install debs after conf script

    Liraz Siri authored
    rational: that way we can install dependencies
Commits on Jan 16, 2010
  1. @alonswartz

    release notes for v0.91

    alonswartz authored
Commits on Jan 11, 2010
  1. bugfix: added robust cleanup code to tklpatch-extract-iso

    Liraz Siri authored
    rational: we don't want to leave around stale mounts
  2. added argument sanity checking to tklpatch

    Liraz Siri authored
  3. added tklpatch-example example

    Liraz Siri authored
    rational: make it even simpler to get started with tklpatch
  4. bugfix: set trap to clean up after chroot

    Liraz Siri authored
  5. added descriptive embedded documentation

    Liraz Siri authored
  6. make it easier to edit embedded usage documentation

    Liraz Siri authored
Commits on Nov 15, 2009
  1. @alonswartz

    release notes for v0.90

    alonswartz authored
  2. @alonswartz
Commits on Nov 13, 2009
  1. @alonswartz
  2. @alonswartz

    removed tklpatch-apply-plan

    alonswartz authored
        - the same functionality can be duplicated simply in conf using apt-get
        - in some cases, installing a package will fail due to the assumption
          that it is being installed into a running system (e.g., assuming
          mysql daemon is running)
Commits on Nov 11, 2009
  1. @alonswartz
  2. @alonswartz
Something went wrong with that request. Please try again.