Reported by Steve:
I've used your script to migrate Ubuntu to Ubuntu successfully several times. Today I tried it for Fedora 19 to Fedora 19 and had problems...
What appears to happen is that the target system runs the script to create /tmp/SwapFile, but the file winds up with group and (I think) world read privilege. When swapon is invoked, it grumbles about wanting 0600 privilege and dies. This brings the entire sync process to a screeching halt.
Reported by Steve: I've used your script to migrate Ubuntu to Ubuntu successfully several times. Today I tried it for Fedora 19 to Fedora 19 and had problems...
What appears to happen is that the target system runs the script to create /tmp/SwapFile, but the file winds up with group and (I think) world read privilege. When swapon is invoked, it grumbles about wanting 0600 privilege and dies. This brings the entire sync process to a screeching halt.