Skip to content

Commit

Permalink
Don't use -f in btrfs mkfs command. It doesn't exist on old
Browse files Browse the repository at this point in the history
versions of mkfs.btrfs such as RHEL6 one.
  • Loading branch information
Arakmar committed Aug 5, 2013
1 parent d41e4b6 commit fde6c42
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -94,7 +94,7 @@ EOF
cat >> $LAYOUT_CODE <<EOF
LogPrint "Creating $fstype-filesystem $mp on $device"
# if $device is already mounted, skip
mount | grep -q $device || mkfs -t $fstype -f $device
mount | grep -q $device || mkfs -t $fstype $device
EOF
if [ -n "$label" ] ; then
echo "mount | grep -q $device || btrfs filesystem label $device $label >&2" >> $LAYOUT_CODE
Expand Down

0 comments on commit fde6c42

Please sign in to comment.