- r = verify_gpt_partition(sub, &type_id, &nr, &fstype);
- if (r < 0) {
- log_error("Failed to verify GPT partition /dev/block/%u:%u: %s",
- major(sub), minor(sub), strerror(-r));
- udev_device_unref(q);
- goto finish;
- }
- if (r == 0)
- goto skip;
-
- if (sd_id128_equal(type_id, SD_ID128_MAKE(06,57,fd,6d,a4,ab,43,c4,84,e5,09,33,c8,4b,4f,4f)))
- add_swap(node, fstype);
- else if (sd_id128_equal(type_id, SD_ID128_MAKE(93,3a,c7,e1,2e,b4,4f,13,b8,44,0e,14,e2,ae,f9,15))) {
-
- if (!home || nr < home_nr) {
- free(home);
- home = strdup(node);
- if (!home) {
- r = log_oom();
- goto finish;
- }
-
- home_nr = nr;
-
- free(home_fstype);
- home_fstype = fstype;
- fstype = NULL;
- }
- }