Browse code

(havana)Increase in the full path to mkfs.xfs(/sbin/mkfs.xfs).

Xfsprogs package has been installed. This is the cause of the error
stack does not have
permission to perform mkfs.xfs command rather mkfs.xfs command in /sbin/
path, stack in order to perform mkfs.xfs must add the full path or use
the sudo command mode.

Fixed bug #1298851

Change-Id: I73793407654d4c24f125c7ba6c3555332eb89b60

Longgeek authored on 2014/03/28 17:33:55
Showing 1 changed files
... ...
@@ -444,7 +444,7 @@ function create_swift_disk() {
444 444
     truncate -s ${SWIFT_LOOPBACK_DISK_SIZE} ${SWIFT_DISK_IMAGE}
445 445
 
446 446
     # Make a fresh XFS filesystem
447
-    mkfs.xfs -f -i size=1024  ${SWIFT_DISK_IMAGE}
447
+    /sbin/mkfs.xfs -f -i size=1024  ${SWIFT_DISK_IMAGE}
448 448
 
449 449
     # Mount the disk with mount options to make it as efficient as possible
450 450
     mkdir -p ${SWIFT_DATA_DIR}/drives/sdb1