cloudnull / InstanceSync

Bash Script to Sync Linux Instances from one to another
GNU General Public License v3.0
92 stars 39 forks source link

Swap file not being created in Fedora #2

Closed cloudnull closed 10 years ago

cloudnull commented 10 years ago

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.

cloudnull commented 10 years ago

This was fixed here : https://github.com/cloudnull/InstanceSync/tree/fix-issue2