[systemd-commits] src/boot

Kay Sievers kay at kemper.freedesktop.org
Mon Feb 11 14:20:08 PST 2013


 src/boot/bootctl.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit abb381b3b3a169a0cd6015c02f21f6032a78a873
Author: Kay Sievers <kay at vrfy.org>
Date:   Mon Feb 11 23:19:31 2013 +0100

    bootctl: print partition uuids as /dev/disk/by-partuuid/...

diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index 641546b..2f1f643 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);



More information about the systemd-commits mailing list