search for: sysuuid_str

Displaying 1 result from an estimated 1 matches for "sysuuid_str".

Did you mean: fsuuid_str
2013 Nov 19
2
[PATCH] Add filesystem UUID to SYSAPPEND for FAT
.../core/sysappend.c +++ b/core/sysappend.c @@ -14,6 +14,7 @@ #include <stdio.h> #include <stdbool.h> #include "core.h" +#include "fs.h" /* * sysappend.c @@ -106,6 +107,22 @@ void sysappend_set_uuid(const uint8_t *src) sysappend_strings[SYSAPPEND_SYSUUID] = sysuuid_str; } +void sysappend_set_fs_uuid(void) +{ + static char fsuuid_str[7+32+7+1] = "FSUUID="; + char *uuid; + + uuid = fs_uuid(); + if (!uuid) + return; + + snprintf(fsuuid_str + 7, sizeof(fsuuid_str) - 7, "%s", uuid); + fsuuid_str[sizeof(fsuuid_str) - 1] = '\...