From Fedora Project Wiki is a Bash shell script from livecd-tools,

Note: There are some variations of the script for different versions of Fedora (see livecd-tools All branches).

Before Fedora 24 the script was usually available in the installation disc's filesystem at /LiveOS/livecd-iso-to-disk . From a booted LiveOS filesystem, the outer USB/SD/CD/DVD device filesystem is mounted on the /run/initramfs/live/ mount point (or at /mnt/live/ on Fedora 16 and earlier).

Usage is documented