Displaying 1 result from an estimated 1 matches for "fsuuid_str".
2013 Nov 19
2
[PATCH] Add filesystem UUID to SYSAPPEND for FAT
...;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] = '\0';
+ free(uuid);
+
+ sysappend_strings[SYSAPPEND_FSUUID] = f...