#!/bin/sh

spt_dir=/usr/share/mspt
. $spt_dir/init

Verbose "Packing chroot in squashfs for '$IDENT'"

$hasher_dir/hsh-install "$work_dir" squashfsprogs || Fatal "Unable to install mksquashfs in chroot"

[ -n "$verbose" ] && EXTRAOPTS=-info
$hasher_dir/hsh-run --rooter -- "$work_dir" \
	/sbin/mksquashfs \
	/ /.image $EXTRAOPTS -e /.image /.host /.in /.out /.fakedata /usr/lib*/*fakeroot* \
	|| Fatal "Unable to create squashfs image"

mv -f $chroot/.image "$out_dir/$OUT/altlinux"
