On Wed, Jan 19, 2011, John Rigby wrote: > How does l-m-c know about the boot partition convention?
I've just added to the wiki page; this came up yesterday on IRC when we started taking imx51 into account. We would have a partition_layout field which commands which partition layout type we want to use for this hardware, either omap-style or mx5-style. > If a new platform pops up with a completely different convention does > l-m-c need to be modified or could we put a script in the hwpack to do > that? I'm all against script; we basically lose control and surrender to what the hwpacks runs, this is fragile and dangerous. I'd rather keep hwpacks as data and linaro-media-create as logic. > For map you could call a script with an argument pointing to the blown > out hwpack and and second argument pointing at the mounted boot > partition. > For mx first argument is the same second is a pointer to raw device. > So the hwpack would need a field to say if the scipt needs a raw > device or mounted dos partition and.. > another field with the script name. Well, if we ever want to support fancier partition layouts, we could go as far as having a description of the layout; e.g.: partition_layout_data: 0: vfat@4MiB, 1: rootfs or something like that, but I think we don't need such complexity in the near term. There are formats we could reuse like the one used in debian-installer for preseeding if we ever want to do this, but I agree this would be overengineered for now. -- Loïc Minier _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev