Hi!

Im trying to patch a turnkey-core. 

tklpatch turnkey-core-14.0-jessie-amd64.iso turnkey-patch

But it fails at a late stage and I don't really have a clue why.

It fails with the following output:

Setting up samba (2:4.1.17+dfsg-2+deb8u1) ...
Adding group `sambashare' (GID 117) ...
Done.
[ ok ] Starting SMB/CIFS daemon: smbd.
[ ok ] Starting NetBIOS name server: nmbd.
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u3) ...
Processing triggers for ca-certificates (20141019+deb8u1) ...
Updating certificates in /etc/ssl/certs... 19 added, 18 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for python-support (1.0.15) ...
Processing triggers for libc-bin (2.19-18+deb8u2) ...
Processing triggers for initramfs-tools (0.120) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
/usr/share/initramfs-tools/scripts/casper-bottom/25autologin: 13: .: Can't open                                                           /scripts/casper-functions
/usr/share/initramfs-tools/scripts/casper-bottom/25singleuser_shell: 6: .: Can't                                                           open /scripts/casper-functions
/usr/share/initramfs-tools/scripts/casper-bottom/25ssh_emptypw: 6: .: Can't open                                                           /scripts/casper-functions
Removing 'local diversion of /sbin/initctl to /sbin/initctl.distrib'
umount: /root/AsteriskAppliance/turnkey-core-14.0-jessie-amd64.rootfs/proc: targ                                                          et is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)


Before trying to patch the ISO I had verified the scripts by executing tklpatch-apply. I had no problem with that, except that I got the same "can't open" loggin

update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
/usr/share/initramfs-tools/scripts/casper-bottom/25autologin: 13: .: Can't open                                                           /scripts/casper-functions
/usr/share/initramfs-tools/scripts/casper-bottom/25singleuser_shell: 6: .: Can't                                                           open /scripts/casper-functions
/usr/share/initramfs-tools/scripts/casper-bottom/25ssh_emptypw: 6: .: Can't open                                                           /scripts/casper-functions

 

I'm greatful for any kind of tips or ideas.

Kind regards

Fredrik

Forum: 
Jeremy Davis's picture

Sorry for slow response. I'm trying to finish up the v14.1 release but everything always takes longer than you expect...

The casper stuff shouldn't be an issue. It relates to the "live" instance so won't make any difference for installing.

TBH I'm not sure why it errored, but then tklpatch-apply worked.

Regardless we have just released a new version of tklpatch. I hadn't come across this particular issue but it works for me.

apt-get update && apt-get install tklpatch

Thanks for the response.

I was able to get passed the issue I had.

I solved it by removing some of the debs that i was including in the patch. Not exactly sure which package it was that caused it.

I also had to apply the work-around for tklpatch that you described here.
https://www.turnkeylinux.org/blog/turnkey-14-0-release#comment-24971

Is that solved in the new version?

Kind regards

Fredrik

Add new comment