/usr/share/doc/unionfs-fuse/examples/S01a-unionfs-fuse-live-cd.sh is in unionfs-fuse 0.24-2.2.
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 24 25 26 27 28 29 | #!/bin/sh
# Copyright: Bernd Schubert <bernd.schubert@fastmail.fm>
# BSD license, see LICENSE file for details
FUSE_OPT="-o allow_other,use_ino,suid,dev,nonempty"
CHROOT_PATH="/tmp/unionfs"
UNION_OPT="-ocow,chroot=$CHROOT_PATH,max_files=32768"
UBIN=/usr/bin/unionfs-fuse
mount -t proc proc /proc
mount -t tmpfs tmpfs /tmp
mkdir -p $CHROOT_PATH/root
mkdir -p $CHROOT_PATH/rw
mkdir -p /tmp/union
mount --bind / $CHROOT_PATH/root
$UBIN $FUSE_OPT $UNION_OPT /rw=RW:/root=RO /tmp/union
mount -t proc proc /tmp/union/proc
cd /tmp/union
mkdir oldroot
pivot_root . oldroot
init q
|