summaryrefslogtreecommitdiffstats
path: root/common/partitions.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-17 12:40:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-18 09:01:01 +0200
commitbc31d85c6e23d724664e76bcfc3b2eda778012a3 (patch)
tree7555fa7f2093c7777635f576941c4a59bd7038db /common/partitions.c
parentacc930f1e9c482dc826bb63a6b9d36463a280210 (diff)
downloadbarebox-bc31d85c6e23d724664e76bcfc3b2eda778012a3.tar.gz
cdev: Add partuuid string to struct cdev
This adds the partuuid string to struct cdev in order to have this available for constructing a suitable Linux root=PARTUUID= option for booting Linux. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions.c')
-rw-r--r--common/partitions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/partitions.c b/common/partitions.c
index 37d9cb7..4f50bfe 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -64,6 +64,7 @@ static int register_one_partition(struct block_device *blk,
}
cdev->dos_partition_type = part->dos_partition_type;
+ strcpy(cdev->partuuid, part->partuuid);
free(partition_name);