From 450115043d5dc7756f55b54dcdf29d2d24694f7c Mon Sep 17 00:00:00 2001 From: HuijingHei Date: Fri, 17 Nov 2023 22:55:05 +0800 Subject: [PATCH] google_nvme_id: sync with latest upstream version Sync with upstream PR https://github.com/GoogleCloudPlatform/guest-configs/pull/56 --- overlay.d/30gcp-udev-rules/usr/lib/udev/google_nvme_id | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay.d/30gcp-udev-rules/usr/lib/udev/google_nvme_id b/overlay.d/30gcp-udev-rules/usr/lib/udev/google_nvme_id index 6579cc7a..20588423 100755 --- a/overlay.d/30gcp-udev-rules/usr/lib/udev/google_nvme_id +++ b/overlay.d/30gcp-udev-rules/usr/lib/udev/google_nvme_id @@ -59,7 +59,7 @@ function err() { ####################################### function get_namespace_device_name() { local nvme_json - nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | cut -b 384-)" + nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | dd bs=1 skip=384 2>/dev/null)" if [[ $? -ne 0 ]]; then return 1 fi