/usr/bin/sb2-mkinitramfs is in scratchbox2 2.2.4-1debian1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh
if [ "x$1" = x -o "x$2" = x ]; then
echo usage fakeroot $0 initramfsdir initramfsfile
exit 1
fi
if [ x`whoami` != xroot ]; then
echo must be run under root or fakeroot
exit 2
fi
rm -rf $1/dev
mkdir -p $1/dev/pts
cp -a /dev/{null,tty,tty0,ram0,console,zero,loop*,ptmx} $1/dev/
# sanity checks
if [ ! -x $1/init ]; then
echo "$1/init script missing"
fi
(cd $1; find . | cpio -o -H newc | gzip ) > $2
|