Skip to content

Commit 6caa48f

Browse files
osguard: fix usr-a/b repart.d types to match image (#14470)
To avoid mismatch of partition type information between original partitioning and repart.d configuration, this change updates the repart.d generation script for osguard to use the type already present rather than overwriting the partition type information. The change also regenerates the osguard repart.d files so the usr-a/b type information matches what is present in the osguard image, so systemd-repartd is successful. Signed-off-by: Chris Co <[email protected]>
1 parent 62b8444 commit 6caa48f

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Partition]
2-
Type=usr
2+
Type=linux-generic
33
Label=usr-a
44
SizeMinBytes=1G
55
SizeMaxBytes=1G
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Partition]
2-
Type=usr
2+
Type=linux-generic
33
Label=usr-b
44
SizeMinBytes=1G
55
SizeMaxBytes=1G

toolkit/scripts/generate-repartd.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ rm -f "$REPART_DIR"/*.conf
1212

1313
emit_partition() {
1414
local num="$1" part="$2" type="$3" label="$4" size="$5"
15-
# Set Type for root and root-hash partitions
16-
if [[ "$part" =~ ^usr-(a|b)$ ]]; then
17-
type_out="usr"
18-
elif [[ "$part" =~ ^usr-hash-(a|b)$ ]]; then
19-
type_out="usr-verity"
20-
else
21-
type_out="$type"
22-
fi
15+
type_out="$type"
2316

2417
# Ensure label is never null
2518
if [[ -z "$label" || "$label" == "null" ]]; then

0 commit comments

Comments
 (0)