#!/bin/bash #=============================================================================# # Make cpios image from fakeroot directory # #=============================================================================# # Requires: # hasher by Dmitry V. Levin (ldv) # cpio #=============================================================================# # (C) Denis Smirnov $T cp -a `which cpio` $chroot/.host/ echo "Creating $RESULT" | csed '/.*/ p green' >&2 hsh-run "$WORKDIR" --rooter --save-fakeroot -- /.host/find / \ -mindepth 1 \ -name .in -prune -o \ -name .out -prune -o \ -name .host -prune -o \ -name .fakedata -prune -o \ -name .altlinux.img -prune -o \ -wholename /usr/lib*/*fakeroot* -prune -o \ -print0 \ | grep -vz ^/etc$ \ | grep -vz ^/etc/passwd$ \ | grep -vz ^/etc/group$ \ >> $T \ 2> /dev/null hsh-run "$WORKDIR" --rooter --save-fakeroot -- /.host/cpio \ -0 -c --create --quiet > "$RESULT" < $T rm -f $T