Neontribe's picture

is tklpatch broken currently?

My company have been building a turnkey appliance for the last few weeks. I have a vm setup with a turnkey-core install on it with tklpatch that I use to build the iso images as we iterate through out initial build.

I can happily do the following on this system:

working

root@core ~# ls
iso  linked-data
root@core ~# tklpatch iso/turnkey-core-12.0-squeeze-x86.iso linked-data/
# extracting root filesystem and isolinux from ISO
Parallel unsquashfs: Using 1 processor
25597 inodes (25986 blocks) to write
 
[========================================================================================================================================================================================================================/] 25986/25986 100%
</snip>
95.41% done, estimate finish Thu Apr 18 10:16:31 2013
Total translation table size: 2048
Total rockridge attributes bytes: 1816
Total directory bytes: 4096
Path table size(bytes): 40
Max brk space used 0
104817 extents written (204 MB)
root@core ~# ls
iso  linked-data  turnkey-core-12.0-squeeze-x86-patched.iso

and it correctly builds our iso image. Recently I tried to replicate this at home and build another vm (just a fresh install of turnkey-core with tklpatch installed). However when I went to "apt-get install tklpatch" it says no installation candidate is available, once I have done an "apt-get update;apt-get install tklpatch" it installs however I'm now unable to build iso images:

broken

root@core ~# ls

linked-data  turnkey-core-12.0-squeeze-x86.iso
root@core ~# tklpatch turnkey-core-12.0-squeeze-x86.iso linked-data/
# extracting root filesystem and isolinux from ISO
Parallel unsquashfs: Using 1 processor
25597 inodes (25986 blocks) to write
 
[===========================================================\] 25986/25986 100%
created 23964 files
created 2837 directories
created 1074 symlinks
created 38 devices
created 1 fifos
TKLPATCH_ISOLABEL: linked-data
# applying patch linked-data
# executing config script linked-data/conf/pre-debs
Adding 'local diversion of /sbin/initctl to /sbin/initctl.distrib'
# chroot execute: /tmp/tklpatch/pre-debs
Removing 'local diversion of /sbin/initctl to /sbin/initctl.distrib'
root@core ~# ls
linked-data                           turnkey-core-12.0-squeeze-x86.iso
turnkey-core-12.0-squeeze-x86.cdroot  turnkey-core-12.0-squeeze-x86.rootfs
 
For comparison (working then broken package versions):
 
working:
root@core ~# apt-cache show tklpatch
Package: tklpatch
Priority: optional
Section: misc
Installed-Size: 85
Maintainer: Alon Swartz <alon@turnkeylinux.org>
Architecture: i386
Version: 0.93+12+gf0f0943
Depends: squashfs-tools, genisoimage, tar, gzip
Filename: pool/squeeze/main/t/tklpatch/tklpatch_0.93+12+gf0f0943_i386.deb
Size: 10126
MD5sum: 76db6fb4ab0b4a57c29b5ae2844e3d8e
SHA1: 8cce782dd731d8aaf8e37fae539b261cad6aca87
SHA256: 4ec355e531ef5d76068b58945bfa4d8a38ce50ef3037262607105acc2daa0f2b
Description: TurnKey Linux Customization Mechanism
 
Package: tklpatch
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 85
Maintainer: Alon Swartz <alon@turnkeylinux.org>
Architecture: all
Version: 0.93+10+g4c48672
Depends: squashfs-tools, genisoimage, tar, gzip
Description: TurnKey Linux Customization Mechanism
 
broken:
root@core ~# apt-cache show tklpatch
Package: tklpatch
Priority: optional
Section: misc
Installed-Size: 85
Maintainer: Alon Swartz <alon@turnkeylinux.org>
Architecture: i386
Version: 0.93+12+gf0f0943
Depends: squashfs-tools, genisoimage, tar, gzip
Filename: pool/squeeze/main/t/tklpatch/tklpatch_0.93+12+gf0f0943_i386.deb
Size: 10126
MD5sum: 76db6fb4ab0b4a57c29b5ae2844e3d8e
SHA1: 8cce782dd731d8aaf8e37fae539b261cad6aca87
SHA256: 4ec355e531ef5d76068b58945bfa4d8a38ce50ef3037262607105acc2daa0f2b
Description: TurnKey Linux Customization Mechanism
 
Is this intentional - has the usage of tklpatch changed, or is this a bug in the packaged version of tklpatch? I have disabled automatic updates on my office build machine as I'm worried that the latest version in the repository is broken.
 
The full working and broken tklpatch output are attached.
 
Regards
Andy
Forum: