Change variable name $dir --> $chroot_dir
Rename int_errors to integer_errors
Allow "p=" to abbreviate "persist="
Use chroot to mkfs.  Modify system_mount() to have named params
Change how we color many of the fatal/non-fatal error messages
Exit quickly from find_files().  Make find_boot_file() routine

Exit quickly from find_files() if a device specifed by dev or
label or uuid is found but the files are not found.

Make a separate find_boot_files() routine so we don't have fatal
errors when looking for persistence device
Remove trailing whitespace
Correct logic for when we make the homefs file

Always make homefs if it is required (homefs!)

Also make if it is wanted (homefs) and rootfs is required (rootfs!) and
no rootfs or rootfs.new file exists (before we try to make it).

The idea is to offer to make homefs just once if rootfs!,homefs but
don't offer after the first time otherwise it is a nag.
Improve how we handle find_file() errors for persist files
Get rid of some visual fluff in fatal/non-fatal error message
Remove visual fluff from device errors.  Fix 2 bugs

Report device node (sda1) instead of "name"

Say "no device found with label >>XXX<<<" instead of
    "no device found with >>>label=xxx<<<"
Add vertical space to label_error() output
Get chroot working with all forms of do_fsck()

Add a bind= option to system_mount() so callers can bind mount
different directories to /tmp/bind in the chroot.

Add more options to do_fsck() so we know when to bind mount
(checking homefs and rootfs)
Give up in find_files() early if partition is missing

If the root device (/dev/sda) exists but the partition on it we
are looking for is missing then we give up early.  We wait one
second for one final try just in case there is a delay before
partitions appear.
Minor cleanup that does not affect the code
Handle find_files() errors in persist mode better

Don't set pretry to 0 because we have code that deals with this case in
find_files() now.

Log the return value.

Fix how we handle device versus file errors
Figure out MAX_MKFS_SIZE from MKFS_SIZES
Fix log file creation.  Need to write log file after new_root is set
Remove debugging message
Move create_persist_files() to inside of find_files()

This lets it work with all persist devices.