Lines Matching refs:partitions
413 m->partitions[PARTITION_ROOT] = (DissectedPartition) { in dissect_image()
786 if (m->partitions[designator].found) { in dissect_image()
793 … strverscmp_improved(m->partitions[designator].label, label) >= 0) in dissect_image()
796 dissected_partition_done(m->partitions + designator); in dissect_image()
822 m->partitions[designator] = (DissectedPartition) { in dissect_image()
866 if (m->partitions[PARTITION_XBOOTLDR].found) in dissect_image()
884 m->partitions[PARTITION_XBOOTLDR] = (DissectedPartition) { in dissect_image()
902 if (m->partitions[PARTITION_ROOT].found) { in dissect_image()
905 m->partitions[PARTITION_ROOT_SECONDARY].found = false; in dissect_image()
906 m->partitions[PARTITION_ROOT_SECONDARY_VERITY].found = false; in dissect_image()
907 m->partitions[PARTITION_ROOT_SECONDARY_VERITY_SIG].found = false; in dissect_image()
908 m->partitions[PARTITION_USR_SECONDARY].found = false; in dissect_image()
909 m->partitions[PARTITION_USR_SECONDARY_VERITY].found = false; in dissect_image()
910 m->partitions[PARTITION_USR_SECONDARY_VERITY_SIG].found = false; in dissect_image()
912 m->partitions[PARTITION_ROOT_OTHER].found = false; in dissect_image()
913 m->partitions[PARTITION_ROOT_OTHER_VERITY].found = false; in dissect_image()
914 m->partitions[PARTITION_ROOT_OTHER_VERITY_SIG].found = false; in dissect_image()
915 m->partitions[PARTITION_USR_OTHER].found = false; in dissect_image()
916 m->partitions[PARTITION_USR_OTHER_VERITY].found = false; in dissect_image()
917 m->partitions[PARTITION_USR_OTHER_VERITY_SIG].found = false; in dissect_image()
919 } else if (m->partitions[PARTITION_ROOT_VERITY].found || in dissect_image()
920 m->partitions[PARTITION_ROOT_VERITY_SIG].found) in dissect_image()
923 else if (m->partitions[PARTITION_ROOT_SECONDARY].found) { in dissect_image()
931 m->partitions[PARTITION_ROOT] = m->partitions[PARTITION_ROOT_SECONDARY]; in dissect_image()
932 zero(m->partitions[PARTITION_ROOT_SECONDARY]); in dissect_image()
933 … m->partitions[PARTITION_ROOT_VERITY] = m->partitions[PARTITION_ROOT_SECONDARY_VERITY]; in dissect_image()
934 zero(m->partitions[PARTITION_ROOT_SECONDARY_VERITY]); in dissect_image()
935 … m->partitions[PARTITION_ROOT_VERITY_SIG] = m->partitions[PARTITION_ROOT_SECONDARY_VERITY_SIG]; in dissect_image()
936 zero(m->partitions[PARTITION_ROOT_SECONDARY_VERITY_SIG]); in dissect_image()
938 m->partitions[PARTITION_USR] = m->partitions[PARTITION_USR_SECONDARY]; in dissect_image()
939 zero(m->partitions[PARTITION_USR_SECONDARY]); in dissect_image()
940 m->partitions[PARTITION_USR_VERITY] = m->partitions[PARTITION_USR_SECONDARY_VERITY]; in dissect_image()
941 zero(m->partitions[PARTITION_USR_SECONDARY_VERITY]); in dissect_image()
942 … m->partitions[PARTITION_USR_VERITY_SIG] = m->partitions[PARTITION_USR_SECONDARY_VERITY_SIG]; in dissect_image()
943 zero(m->partitions[PARTITION_USR_SECONDARY_VERITY_SIG]); in dissect_image()
945 m->partitions[PARTITION_ROOT_OTHER].found = false; in dissect_image()
946 m->partitions[PARTITION_ROOT_OTHER_VERITY].found = false; in dissect_image()
947 m->partitions[PARTITION_ROOT_OTHER_VERITY_SIG].found = false; in dissect_image()
948 m->partitions[PARTITION_USR_OTHER].found = false; in dissect_image()
949 m->partitions[PARTITION_USR_OTHER_VERITY].found = false; in dissect_image()
950 m->partitions[PARTITION_USR_OTHER_VERITY_SIG].found = false; in dissect_image()
952 } else if (m->partitions[PARTITION_ROOT_SECONDARY_VERITY].found || in dissect_image()
953 m->partitions[PARTITION_ROOT_SECONDARY_VERITY_SIG].found) in dissect_image()
956 else if (m->partitions[PARTITION_ROOT_OTHER].found) { in dissect_image()
963 architecture_to_string(m->partitions[PARTITION_ROOT_OTHER].architecture)); in dissect_image()
965 m->partitions[PARTITION_ROOT] = m->partitions[PARTITION_ROOT_OTHER]; in dissect_image()
966 zero(m->partitions[PARTITION_ROOT_OTHER]); in dissect_image()
967 m->partitions[PARTITION_ROOT_VERITY] = m->partitions[PARTITION_ROOT_OTHER_VERITY]; in dissect_image()
968 zero(m->partitions[PARTITION_ROOT_OTHER_VERITY]); in dissect_image()
969 … m->partitions[PARTITION_ROOT_VERITY_SIG] = m->partitions[PARTITION_ROOT_OTHER_VERITY_SIG]; in dissect_image()
970 zero(m->partitions[PARTITION_ROOT_OTHER_VERITY_SIG]); in dissect_image()
972 m->partitions[PARTITION_USR] = m->partitions[PARTITION_USR_OTHER]; in dissect_image()
973 zero(m->partitions[PARTITION_USR_OTHER]); in dissect_image()
974 m->partitions[PARTITION_USR_VERITY] = m->partitions[PARTITION_USR_OTHER_VERITY]; in dissect_image()
975 zero(m->partitions[PARTITION_USR_OTHER_VERITY]); in dissect_image()
976 … m->partitions[PARTITION_USR_VERITY_SIG] = m->partitions[PARTITION_USR_OTHER_VERITY_SIG]; in dissect_image()
977 zero(m->partitions[PARTITION_USR_OTHER_VERITY_SIG]); in dissect_image()
981 … if (m->partitions[PARTITION_ROOT_VERITY_SIG].found && !m->partitions[PARTITION_ROOT_VERITY].found) in dissect_image()
984 if (m->partitions[PARTITION_USR].found) { in dissect_image()
986 m->partitions[PARTITION_USR_SECONDARY].found = false; in dissect_image()
987 m->partitions[PARTITION_USR_SECONDARY_VERITY].found = false; in dissect_image()
988 m->partitions[PARTITION_USR_SECONDARY_VERITY_SIG].found = false; in dissect_image()
990 m->partitions[PARTITION_USR_OTHER].found = false; in dissect_image()
991 m->partitions[PARTITION_USR_OTHER_VERITY].found = false; in dissect_image()
992 m->partitions[PARTITION_USR_OTHER_VERITY_SIG].found = false; in dissect_image()
994 } else if (m->partitions[PARTITION_USR_VERITY].found || in dissect_image()
995 m->partitions[PARTITION_USR_VERITY_SIG].found) in dissect_image()
998 else if (m->partitions[PARTITION_USR_SECONDARY].found) { in dissect_image()
1004 m->partitions[PARTITION_USR] = m->partitions[PARTITION_USR_SECONDARY]; in dissect_image()
1005 zero(m->partitions[PARTITION_USR_SECONDARY]); in dissect_image()
1006 m->partitions[PARTITION_USR_VERITY] = m->partitions[PARTITION_USR_SECONDARY_VERITY]; in dissect_image()
1007 zero(m->partitions[PARTITION_USR_SECONDARY_VERITY]); in dissect_image()
1008 … m->partitions[PARTITION_USR_VERITY_SIG] = m->partitions[PARTITION_USR_SECONDARY_VERITY_SIG]; in dissect_image()
1009 zero(m->partitions[PARTITION_USR_SECONDARY_VERITY_SIG]); in dissect_image()
1011 m->partitions[PARTITION_USR_OTHER].found = false; in dissect_image()
1012 m->partitions[PARTITION_USR_OTHER_VERITY].found = false; in dissect_image()
1013 m->partitions[PARTITION_USR_OTHER_VERITY_SIG].found = false; in dissect_image()
1015 } else if (m->partitions[PARTITION_USR_SECONDARY_VERITY].found || in dissect_image()
1016 m->partitions[PARTITION_USR_SECONDARY_VERITY_SIG].found) in dissect_image()
1019 else if (m->partitions[PARTITION_USR_OTHER].found) { in dissect_image()
1023 architecture_to_string(m->partitions[PARTITION_ROOT_OTHER].architecture)); in dissect_image()
1026 m->partitions[PARTITION_USR] = m->partitions[PARTITION_USR_OTHER]; in dissect_image()
1027 zero(m->partitions[PARTITION_USR_OTHER]); in dissect_image()
1028 m->partitions[PARTITION_USR_VERITY] = m->partitions[PARTITION_USR_OTHER_VERITY]; in dissect_image()
1029 zero(m->partitions[PARTITION_USR_OTHER_VERITY]); in dissect_image()
1030 … m->partitions[PARTITION_USR_VERITY_SIG] = m->partitions[PARTITION_USR_OTHER_VERITY_SIG]; in dissect_image()
1031 zero(m->partitions[PARTITION_USR_OTHER_VERITY_SIG]); in dissect_image()
1035 … if (m->partitions[PARTITION_USR_VERITY_SIG].found && !m->partitions[PARTITION_USR_VERITY].found) in dissect_image()
1039 if (m->partitions[PARTITION_ROOT].found && in dissect_image()
1040 m->partitions[PARTITION_USR].found && in dissect_image()
1041 (m->partitions[PARTITION_ROOT].architecture >= 0 && in dissect_image()
1042 m->partitions[PARTITION_USR].architecture >= 0 && in dissect_image()
1043 … m->partitions[PARTITION_ROOT].architecture != m->partitions[PARTITION_USR].architecture)) in dissect_image()
1046 if (!m->partitions[PARTITION_ROOT].found && in dissect_image()
1047 !m->partitions[PARTITION_USR].found && in dissect_image()
1073 m->partitions[PARTITION_ROOT] = (DissectedPartition) { in dissect_image()
1090 …!(m->partitions[PARTITION_ROOT].found || (m->partitions[PARTITION_USR].found && FLAGS_SET(flags, D… in dissect_image()
1093 if (m->partitions[PARTITION_ROOT_VERITY].found) { in dissect_image()
1095 if (m->partitions[PARTITION_USR_VERITY].found) in dissect_image()
1100 if (m->partitions[PARTITION_USR].found) in dissect_image()
1106 if (verity->designator >= 0 && !m->partitions[verity->designator].found) in dissect_image()
1114 … if (!m->partitions[PARTITION_ROOT_VERITY].found || !m->partitions[PARTITION_ROOT].found) in dissect_image()
1118 m->partitions[PARTITION_ROOT].rw = false; in dissect_image()
1124 … if (!m->partitions[PARTITION_USR_VERITY].found || !m->partitions[PARTITION_USR].found) in dissect_image()
1127 m->partitions[PARTITION_USR].rw = false; in dissect_image()
1134 …} else if (m->partitions[verity->designator == PARTITION_USR ? PARTITION_USR_VERITY_SIG : PARTITIO… in dissect_image()
1139 … m->partitions[verity->designator == PARTITION_USR ? PARTITION_USR : PARTITION_ROOT].rw = false; in dissect_image()
1148 DissectedPartition *p = m->partitions + i; in dissect_image()
1181 dissected_partition_done(m->partitions + i); in dissected_image_unref()
1470 if (!(m->partitions[PARTITION_ROOT].found || in dissected_image_mount()
1471 (m->partitions[PARTITION_USR].found && FLAGS_SET(flags, DISSECT_IMAGE_USR_NO_ROOT)))) in dissected_image_mount()
1477 if (m->partitions[PARTITION_ROOT].found) in dissected_image_mount()
1478 … r = mount_partition(m->partitions + PARTITION_ROOT, where, NULL, uid_shift, uid_range, flags); in dissected_image_mount()
1485 … r = mount_partition(m->partitions + PARTITION_USR, where, "/usr", uid_shift, uid_range, flags); in dissected_image_mount()
1517 … r = mount_partition(m->partitions + PARTITION_HOME, where, "/home", uid_shift, uid_range, flags); in dissected_image_mount()
1521 … r = mount_partition(m->partitions + PARTITION_SRV, where, "/srv", uid_shift, uid_range, flags); in dissected_image_mount()
1525 … r = mount_partition(m->partitions + PARTITION_VAR, where, "/var", uid_shift, uid_range, flags); in dissected_image_mount()
1529 …r = mount_partition(m->partitions + PARTITION_TMP, where, "/var/tmp", uid_shift, uid_range, flags); in dissected_image_mount()
1533 …xbootldr_mounted = mount_partition(m->partitions + PARTITION_XBOOTLDR, where, "/boot", uid_shift, … in dissected_image_mount()
1537 if (m->partitions[PARTITION_ESP].found) { in dissected_image_mount()
1559 … r = mount_partition(m->partitions + PARTITION_ESP, where, "/boot", uid_shift, uid_range, flags); in dissected_image_mount()
1571 … r = mount_partition(m->partitions + PARTITION_ESP, where, "/efi", uid_shift, uid_range, flags); in dissected_image_mount()
2131 DissectedPartition *p = m->partitions + i; in dissected_image_decrypt()
2143 … r = verity_partition(i, p, m->partitions + k, verity, flags | DISSECT_IMAGE_VERITY_SHARE, d); in dissected_image_decrypt()
2470 p = m->partitions + d; in dissected_image_load_verity_sig_partition()
2905 return k >= 0 && image->partitions[k].found; in dissected_image_verity_ready()
2922 return k >= 0 && image->partitions[k].found; in dissected_image_verity_sig_ready()