summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-01-04 13:23:37 +1100
committerJeremy Kerr <jk@ozlabs.org>2008-01-04 13:24:50 +1100
commit84a9a8660a90551f2f934ac77ac0c9b2c2e8c079 (patch)
tree600d3208e3c33d83490bdcbbefde0282f40b9866
parentdbacb44c0ebb587b5cfcbbf84c770502c217473a (diff)
downloadtalos-petitboot-84a9a8660a90551f2f934ac77ac0c9b2c2e8c079.tar.gz
talos-petitboot-84a9a8660a90551f2f934ac77ac0c9b2c2e8c079.zip
Don't reset dev->id in yaboot parser
- this may end up giving duplicate IDs for different partitions. It's fine to keep the device where we discovered the config file. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--devices/yaboot-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/yaboot-parser.c b/devices/yaboot-parser.c
index fc55047..8d65ce2 100644
--- a/devices/yaboot-parser.c
+++ b/devices/yaboot-parser.c
@@ -203,7 +203,7 @@ static int yaboot_parse(const char *devicepath, const char *_mountpoint)
sprintf(endp+1, "%d", partnr);
mountpoint = mountpoint_for_device(new_dev);
- dev->id = new_dev;
+ free(new_dev);
}
}
OpenPOWER on IntegriCloud