Browse code

Ask for SWIFT_HASH.

Chmouel Boudjnah authored on 2011/11/02 09:03:29
Showing 1 changed files
... ...
@@ -284,6 +284,9 @@ SWIFT_LOOPBACK_DISK_SIZE=${SWIFT_LOOPBACK_DISK_SIZE:-1000000}
284 284
 # Default partition power size (bigger is slower)
285 285
 SWIFT_PARTITION_POWER_SIZE=${SWIFT_PARTITION_POWER_SIZE:-9}
286 286
 
287
+# Swift hash, this must be unique
288
+read_password SWIFT_HASH "ENTER A RANDOM HASH SHARED BETWEEN ALL PROCESSES."
289
+
287 290
 # Keystone
288 291
 # --------
289 292
 
... ...
@@ -667,7 +670,6 @@ EOF
667 667
 
668 668
    # Generate swift.conf, we need to have the swift-hash being random
669 669
    # and unique.
670
-   swift_hash=$(od -t x8 -N 8 -A n </dev/random)
671 670
    sed -e "s/%SWIFT_HASH%/$swift_hash/" $FILES/swift.conf > /etc/swift/swift.conf
672 671
 
673 672
    # We need to generate a object/account/proxy configuration