X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-support%2Fpuppet%2Ffiles%2Fstx-puppet%2Fget-boot-device-from-cmdline.patch;fp=meta-stx%2Frecipes-support%2Fpuppet%2Ffiles%2Fstx-puppet%2Fget-boot-device-from-cmdline.patch;h=0000000000000000000000000000000000000000;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=e4a09136c820df47716148247362c988a9c217d9;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-stx/recipes-support/puppet/files/stx-puppet/get-boot-device-from-cmdline.patch b/meta-stx/recipes-support/puppet/files/stx-puppet/get-boot-device-from-cmdline.patch deleted file mode 100644 index e4a0913..0000000 --- a/meta-stx/recipes-support/puppet/files/stx-puppet/get-boot-device-from-cmdline.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/puppet-manifests/src/modules/platform/lib/facter/is_primary_disk_rotational.rb b/puppet-manifests/src/modules/platform/lib/facter/is_primary_disk_rotational.rb -index d80896f..599fcd8 100644 ---- a/puppet-manifests/src/modules/platform/lib/facter/is_primary_disk_rotational.rb -+++ b/puppet-manifests/src/modules/platform/lib/facter/is_primary_disk_rotational.rb -@@ -1,6 +1,6 @@ - require 'facter' - Facter.add(:is_primary_disk_rotational) do -- rootfs_partition = Facter::Core::Execution.exec("df --output=source / | tail -1") -+ rootfs_partition = Facter::Core::Execution.exec('sed -e "s/^.*\(root=\)\(.* \).*$/\2/g" /proc/cmdline') - rootfs_device = Facter::Core::Execution.exec("basename #{rootfs_partition} | sed 's/[0-9]*$//;s/p[0-9]*$//'") - setcode "cat /sys/block/#{rootfs_device}/queue/rotational" - end