2009-03-25 18:03:45 UTC
I rolled by own Ubuntu based livecd for PBA before reading this forum. Only I used remastersys and included the gui environment. (that way I can browse the 'net while backing up or restoring). Yes it takes longer to boot, but it's a sacrifice I am willing to make.
All that aside though, I found a "bug" in the local backup code. Well it probably worked fine with the insert CD but with Ubuntu dialog is behaving differently. I thought I would pass along what I found and how I fixed it.
Basically dialog on insert must have inserted an extra blank line at the beginning of the answer file, and there is no extra line in the answer file when using Ubuntu. As a result the pba-local file needs to be updated in a couple places to adapt.
on line 110 change the line so that it reads:
if [ "`cat /tmp/dialog.ans`" != "" ] && [ "`cat /tmp/dialog.ans | head -n 2 | sort | head -n 1`" != "" ]; then
Pay special attention to the "head" statements as those are the values that need to change
Also in the fetch_local_params function on lines 82-84 change them so that they read:
mount_cmd=`cat /tmp/local.ans|head -n3 |tail -n1`;
target_path=`cat /tmp/local.ans|head -n1 |tail -n1`;
backup_filename=`cat /tmp/local.ans|head -n2 |tail -n1`;
again it is the head -n values that need to change.