Browse code

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 #1292466

Change-Id: I488133539331b4a0034a2afb4e75665904754245

Longgeek authored on 2014/03/24 18:32:02
Showing 1 changed files
... ...
@@ -489,7 +489,7 @@ function create_swift_disk {
489 489
     truncate -s ${SWIFT_LOOPBACK_DISK_SIZE} ${SWIFT_DISK_IMAGE}
490 490
 
491 491
     # Make a fresh XFS filesystem
492
-    mkfs.xfs -f -i size=1024  ${SWIFT_DISK_IMAGE}
492
+    /sbin/mkfs.xfs -f -i size=1024  ${SWIFT_DISK_IMAGE}
493 493
 
494 494
     # Mount the disk with mount options to make it as efficient as possible
495 495
     mkdir -p ${SWIFT_DATA_DIR}/drives/sdb1