From abb381b3b3a169a0cd6015c02f21f6032a78a873 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 11 Feb 2013 23:19:31 +0100 Subject: bootctl: print partition uuids as /dev/disk/by-partuuid/... --- src/boot/bootctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/boot') diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 641546bc08..2f1f6438cd 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -153,14 +153,16 @@ static int show_status(char **args, unsigned n) { if (info->fw_entries[info->fw_entry_active].path) printf(" %s\n", info->fw_entries[info->fw_entry_active].path); if (!sd_id128_equal(info->fw_entries[info->fw_entry_active].part_uuid, SD_ID128_NULL)) - printf(" %s\n", sd_id128_to_string(info->fw_entries[info->fw_entry_active].part_uuid, buf)); + printf(" /dev/disk/by-partuuid/%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n", + SD_ID128_FORMAT_VAL(info->fw_entries[info->fw_entry_active].part_uuid)); } if (info->loader) { printf(" Loader: %s\n", info->loader); printf(" %s\n", strna(info->loader_image_path)); if (!sd_id128_equal(info->loader_part_uuid, SD_ID128_NULL)) - printf(" %s\n", sd_id128_to_string(info->loader_part_uuid, buf)); + printf(" /dev/disk/by-partuuid/%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n", + SD_ID128_FORMAT_VAL(info->loader_part_uuid)); if (info->loader_entry_active >= 0) { printf(" Loader entry: %s\n", info->loader_entries[info->loader_entry_active].title); -- cgit v1.2.1