I tested it on a fixed disk, but I had to hack the script to do it. I think I hard-coded $usb_mountpoint to do that.
Latest iteration has an Options window where you can change some settings, including allowing you to write to mbr. Also added a couple of tests. Here's a good one that I added to the check_device function (which used to be part of the detect function).
- Code: Select all
# Check that first partition exists (blkid still shows result after zeroing device)
if ! $(/sbin/fdisk -l | grep -q "/dev/${DEVICE}1") ; then
echo "/dev/${DEVICE}1 does not exist."
exit_message="\nDevice /dev/${DEVICE}1 does not exist.
Maybe you need to format it?"
exit_dialog
fi
Also fixed a bug in copy_livemount so that it only tries to convert isolinux to syslinux if there is an isolinux to convert (i.e. you're running a live CD as opposed to running a live-USB. And when it gets to installing syslinux, if there's no syslinux folder, it gives you the option to copy the default Refracta syslinux folder. I ran into that problem when I ran a live session on a usb that uses grub. There's no /lib/live/mount/medium/syslinux folder.
Also working on excludes list for mkusbcrypt and for copy_livemount. It's different from the others. The root of the rsync transfer is /home/ so right now, the entries are looking like
- Code: Select all
- *.Trash*
- *.local/share/Trash/*
- *.gvfs
- *.xsession-errors*
I need to do some more testing with it.