[PATCH 0/7] Detect partition changes at runtime

Marco Felsch m.felsch at pengutronix.de
Thu Feb 15 04:54:43 PST 2024


Hi Sascha,

On 24-02-15, Sascha Hauer wrote:
> With this series barebox can detect partition table changes at runtime
> and reparse the partition table in that case. With this it's possible
> for example to write an image to a SD card and mount partitions directly
> afterwards without restarting barebox.
> 
> The fastboot code is also changed to check for existing partitions when
> they are actually used and no longer during initialization time of the
> gadget. With this it becomes possible to expose a full device via
> fastboot and also some not yet existing partitions. When the full device
> is written to one can then write to a (newly created) partition directly
> afterwards.
> 
> The reparsing of the partition table only works when none of the
> partitions are mounted or otherwise opened. When a partition is open
> when the partition table changes, then barebox will continue with
> the old partition table just like Linux does.

Finally :) except my three comments fell free to add my:

Reviewed-by: Marco Felsch <m.felsch at pengutronix.de>



More information about the barebox mailing list