Begin unsquashfs module, port copy operation from Thus.

Heh, that's very true... I ported this from Thus, I wonder why it was done like this in the first place.