DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] datapartition: make it selectable
@ 2024-06-11 10:27 Roland Hieber
  2024-06-13  7:31 ` Alexander Dahl
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Hieber @ 2024-06-11 10:27 UTC (permalink / raw)
  To: distrokit; +Cc: Roland Hieber

The data partition is not needed for all aspects of the system, and
running systemd-repart to recreate it after writing a new image slows
the debugging cycle considerably. Make it de-selectable to speed up the
debugging process.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/datapartition.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/datapartition.in b/rules/datapartition.in
index 5b8c737fb8ad..152a60633658 100644
--- a/rules/datapartition.in
+++ b/rules/datapartition.in
@@ -1,7 +1,7 @@
 ## SECTION=project_specific
 
 config DATAPARTITION
-	tristate
+	tristate "datapartition"
 	select RC_ONCE
 	select SYSTEMD
 	select SYSTEMD_REPART
-- 
2.39.2




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] [PATCH] datapartition: make it selectable
  2024-06-11 10:27 [DistroKit] [PATCH] datapartition: make it selectable Roland Hieber
@ 2024-06-13  7:31 ` Alexander Dahl
  2024-06-17  9:24   ` Roland Hieber
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Dahl @ 2024-06-13  7:31 UTC (permalink / raw)
  To: Roland Hieber; +Cc: distrokit

Hello Roland,

Am Tue, Jun 11, 2024 at 12:27:56PM +0200 schrieb Roland Hieber:
> The data partition is not needed for all aspects of the system, and
> running systemd-repart to recreate it after writing a new image slows
> the debugging cycle considerably. Make it de-selectable to speed up the
> debugging process.

+1 for the general idea.

However I noticed two things when testing this:

First: The datapartition package also targetinstalls the conf files
for creating the root-B partition to /etc/repart.rc-once.d/ which is
not created now anymore.  I guess the idea of the patch was to avoid
systemd-repart, but at least the commit message claims only the data
partition create is skipped.  Maybe installing those conf files in the
datapartition package was an unfortunate mixup to begin with.

Second: this is the second package now with category
'project_specific' which shows up directly at the top level in the
menu (ptxdist menuconfig, the other one is rauc-udev).  I would
propose to use a submenu instead and move these DistroKit specific
packages over there.

Greets
Alex

> 
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> ---
>  rules/datapartition.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/rules/datapartition.in b/rules/datapartition.in
> index 5b8c737fb8ad..152a60633658 100644
> --- a/rules/datapartition.in
> +++ b/rules/datapartition.in
> @@ -1,7 +1,7 @@
>  ## SECTION=project_specific
>  
>  config DATAPARTITION
> -	tristate
> +	tristate "datapartition"
>  	select RC_ONCE
>  	select SYSTEMD
>  	select SYSTEMD_REPART
> -- 
> 2.39.2
> 
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] [PATCH] datapartition: make it selectable
  2024-06-13  7:31 ` Alexander Dahl
@ 2024-06-17  9:24   ` Roland Hieber
  0 siblings, 0 replies; 3+ messages in thread
From: Roland Hieber @ 2024-06-17  9:24 UTC (permalink / raw)
  To: distrokit

On Thu, Jun 13, 2024 at 09:31:27AM +0200, Alexander Dahl wrote:
> Hello Roland,
> 
> Am Tue, Jun 11, 2024 at 12:27:56PM +0200 schrieb Roland Hieber:
> > The data partition is not needed for all aspects of the system, and
> > running systemd-repart to recreate it after writing a new image slows
> > the debugging cycle considerably. Make it de-selectable to speed up the
> > debugging process.
> 
> +1 for the general idea.
> 
> However I noticed two things when testing this:
> 
> First: The datapartition package also targetinstalls the conf files
> for creating the root-B partition to /etc/repart.rc-once.d/ which is
> not created now anymore.  I guess the idea of the patch was to avoid
> systemd-repart, but at least the commit message claims only the data
> partition create is skipped.  Maybe installing those conf files in the
> datapartition package was an unfortunate mixup to begin with.

Good point. But no, the datapartition contained a similar setup before,
using sfdisk to create the partition, which somehow broke at some time
in the past. So I took that as an opportunity to create the other
partition in the same setup while porting it to systemd-repart. But I
think it would make sense now to rename the recipe in the next patch
iteration.

> Second: this is the second package now with category
> 'project_specific' which shows up directly at the top level in the
> menu (ptxdist menuconfig, the other one is rauc-udev).  I would
> propose to use a submenu instead and move these DistroKit specific
> packages over there.

Good idea.

 - Roland

> Greets
> Alex
> 
> > 
> > Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> > ---
> >  rules/datapartition.in | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/rules/datapartition.in b/rules/datapartition.in
> > index 5b8c737fb8ad..152a60633658 100644
> > --- a/rules/datapartition.in
> > +++ b/rules/datapartition.in
> > @@ -1,7 +1,7 @@
> >  ## SECTION=project_specific
> >  
> >  config DATAPARTITION
> > -	tristate
> > +	tristate "datapartition"
> >  	select RC_ONCE
> >  	select SYSTEMD
> >  	select SYSTEMD_REPART
> > -- 
> > 2.39.2
> > 
> > 
> 

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-17  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-11 10:27 [DistroKit] [PATCH] datapartition: make it selectable Roland Hieber
2024-06-13  7:31 ` Alexander Dahl
2024-06-17  9:24   ` Roland Hieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox