From 5803cd0999c7c57f0fd82917547323d7424b6150 Mon Sep 17 00:00:00 2001 From: Patrick East Date: Mon, 15 Jun 2015 15:13:39 -0700 Subject: [PATCH] Fix FC provider setup script profile.d script output The old output was not correct in that the script would actually cause an error to occur when parsing it. This would result in the fc_pci_device variable to not be available, and in turn the passthrough to fail. Change-Id: I440ad53ac47eee871aba1d796ba6258eb7ebff52 --- provisioning_scripts/fibre_channel/setup_fc_for_provider.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioning_scripts/fibre_channel/setup_fc_for_provider.sh b/provisioning_scripts/fibre_channel/setup_fc_for_provider.sh index 65dc51c..68cb06a 100644 --- a/provisioning_scripts/fibre_channel/setup_fc_for_provider.sh +++ b/provisioning_scripts/fibre_channel/setup_fc_for_provider.sh @@ -33,5 +33,5 @@ if [[ -z $fc_pci_device ]]; then fc_pci_device=$(systool -c fc_host -v | grep -B12 "Online" | grep "Class Device path" | cut -d / -f 6 | tr '\n' ' ') echo "Auto-detected FC PCI DEVICE: $fc_pci_device" fi - echo export $fc_pci_device >> /etc/profile.d/fc_devices.sh + echo "export fc_pci_device='$fc_pci_device'" >> /etc/profile.d/fc_devices.sh fi