Re: [OE-core] [PATCH 2/2] local.conf.sample: Document HOW-TO enable systemd or busbox to replace sysvinit

2016-01-24 Thread Paul Eggleton
On Fri, 22 Jan 2016 20:49:10 Khem Raj wrote:
> OE core provides systemd,busybox as options for system init system along
> with sysvinit being the default. Document the needed settings to enable
> systemd and busybox as options if user wishes.
> 
> Signed-off-by: Khem Raj 
> ---
>  meta/conf/local.conf.sample | 17 +
>  1 file changed, 17 insertions(+)
> 
> diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
> index a662f4d..b760546 100644
> --- a/meta/conf/local.conf.sample
> +++ b/meta/conf/local.conf.sample
> @@ -209,6 +209,23 @@ PACKAGECONFIG_append_pn-qemu-native = " sdl"
>  PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
>  #ASSUME_PROVIDED += "libsdl-native"
> 
> +#
> +# Use busybox/mdev for system initialization
> +#
> +#VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
> +#VIRTUAL-RUNTIME_login_manager = "busybox"
> +#VIRTUAL-RUNTIME_init_manager = "busybox"
> +#VIRTUAL-RUNTIME_initscripts = "initscripts"
> +#VIRTUAL-RUNTIME_keymaps = "keymaps"
> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> +
> +#
> +# Use systemd for system initialization
> +#
> +#DISTRO_FEATURES_append = " systemd sysvinit"
> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> +#VIRTUAL-RUNTIME_init_manager = "systemd"
> +#VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
> 
>  # CONF_VERSION is increased each time build/conf/ changes incompatibly and
> is used to # track the version of this file when it was generated. This can
> safely be ignored if

Is this sort of thing really appropriate for local.conf though? Shouldn't we 
be encouraging people to create a distro config for this level of 
customisation?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] local.conf.sample: Document HOW-TO enable systemd or busbox to replace sysvinit

2016-01-24 Thread Khem Raj
On Sun, Jan 24, 2016 at 11:21 AM, Paul Eggleton
 wrote:
> On Fri, 22 Jan 2016 20:49:10 Khem Raj wrote:
>> OE core provides systemd,busybox as options for system init system along
>> with sysvinit being the default. Document the needed settings to enable
>> systemd and busybox as options if user wishes.
>>
>> Signed-off-by: Khem Raj 
>> ---
>>  meta/conf/local.conf.sample | 17 +
>>  1 file changed, 17 insertions(+)
>>
>> diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
>> index a662f4d..b760546 100644
>> --- a/meta/conf/local.conf.sample
>> +++ b/meta/conf/local.conf.sample
>> @@ -209,6 +209,23 @@ PACKAGECONFIG_append_pn-qemu-native = " sdl"
>>  PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
>>  #ASSUME_PROVIDED += "libsdl-native"
>>
>> +#
>> +# Use busybox/mdev for system initialization
>> +#
>> +#VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
>> +#VIRTUAL-RUNTIME_login_manager = "busybox"
>> +#VIRTUAL-RUNTIME_init_manager = "busybox"
>> +#VIRTUAL-RUNTIME_initscripts = "initscripts"
>> +#VIRTUAL-RUNTIME_keymaps = "keymaps"
>> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
>> +
>> +#
>> +# Use systemd for system initialization
>> +#
>> +#DISTRO_FEATURES_append = " systemd sysvinit"
>> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
>> +#VIRTUAL-RUNTIME_init_manager = "systemd"
>> +#VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
>>
>>  # CONF_VERSION is increased each time build/conf/ changes incompatibly and
>> is used to # track the version of this file when it was generated. This can
>> safely be ignored if
>
> Is this sort of thing really appropriate for local.conf though? Shouldn't we
> be encouraging people to create a distro config for this level of
> customisation?

with IRC feedback from RP and others. Its more of local.conf.extended
item. So I have moved it in there in my v2 patch currently under test.

https://github.com/kraj/openembedded-core/commit/78edec042a47814ffb465d3c6c326fcd2e45447f

poky .e.g works well with both sysvinit and systemd
and some other derived distros as well. So think more it may be
that putting this sort of information in nodistro conf in OE-Core may
be another option but extended local conf is quite advanced user experience
as well

>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] local.conf.sample: Document HOW-TO enable systemd or busbox to replace sysvinit

2016-01-22 Thread Tanu Kaskinen
On Fri, 2016-01-22 at 20:49 +, Khem Raj wrote:
> OE core provides systemd,busybox as options for system init system along
> with sysvinit being the default. Document the needed settings to enable
> systemd and busybox as options if user wishes.
> 
> Signed-off-by: Khem Raj 
> ---
>  meta/conf/local.conf.sample | 17 +
>  1 file changed, 17 insertions(+)
> 
> diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
> index a662f4d..b760546 100644
> --- a/meta/conf/local.conf.sample
> +++ b/meta/conf/local.conf.sample
> @@ -209,6 +209,23 @@ PACKAGECONFIG_append_pn-qemu-native = " sdl"
>  PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
>  #ASSUME_PROVIDED += "libsdl-native"
>  
> +#
> +# Use busybox/mdev for system initialization
> +#
> +#VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
> +#VIRTUAL-RUNTIME_login_manager = "busybox"
> +#VIRTUAL-RUNTIME_init_manager = "busybox"
> +#VIRTUAL-RUNTIME_initscripts = "initscripts"
> +#VIRTUAL-RUNTIME_keymaps = "keymaps"
> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> +
> +#
> +# Use systemd for system initialization
> +#
> +#DISTRO_FEATURES_append = " systemd sysvinit"
> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"

Why is sysvinit included in both DISTRO_FEATURES and
DISTRO_FEATURES_BACKFILL_CONSIDERED? My understanding is that
BACKFILL_CONSIDERED only makes sense when the value is not included in
DISTRO_FEATURES.

-- 
Tanu
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/2] local.conf.sample: Document HOW-TO enable systemd or busbox to replace sysvinit

2016-01-22 Thread Khem Raj
OE core provides systemd,busybox as options for system init system along
with sysvinit being the default. Document the needed settings to enable
systemd and busybox as options if user wishes.

Signed-off-by: Khem Raj 
---
 meta/conf/local.conf.sample | 17 +
 1 file changed, 17 insertions(+)

diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
index a662f4d..b760546 100644
--- a/meta/conf/local.conf.sample
+++ b/meta/conf/local.conf.sample
@@ -209,6 +209,23 @@ PACKAGECONFIG_append_pn-qemu-native = " sdl"
 PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
 #ASSUME_PROVIDED += "libsdl-native"
 
+#
+# Use busybox/mdev for system initialization
+#
+#VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
+#VIRTUAL-RUNTIME_login_manager = "busybox"
+#VIRTUAL-RUNTIME_init_manager = "busybox"
+#VIRTUAL-RUNTIME_initscripts = "initscripts"
+#VIRTUAL-RUNTIME_keymaps = "keymaps"
+#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
+
+#
+# Use systemd for system initialization
+#
+#DISTRO_FEATURES_append = " systemd sysvinit"
+#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
+#VIRTUAL-RUNTIME_init_manager = "systemd"
+#VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
 
 # CONF_VERSION is increased each time build/conf/ changes incompatibly and is 
used to
 # track the version of this file when it was generated. This can safely be 
ignored if
-- 
2.7.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] local.conf.sample: Document HOW-TO enable systemd or busbox to replace sysvinit

2016-01-22 Thread Khem Raj

> On Jan 22, 2016, at 12:57 PM, Tanu Kaskinen  wrote:
> 
> On Fri, 2016-01-22 at 20:49 +, Khem Raj wrote:
>> OE core provides systemd,busybox as options for system init system along
>> with sysvinit being the default. Document the needed settings to enable
>> systemd and busybox as options if user wishes.
>> 
>> Signed-off-by: Khem Raj 
>> ---
>>  meta/conf/local.conf.sample | 17 +
>>  1 file changed, 17 insertions(+)
>> 
>> diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
>> index a662f4d..b760546 100644
>> --- a/meta/conf/local.conf.sample
>> +++ b/meta/conf/local.conf.sample
>> @@ -209,6 +209,23 @@ PACKAGECONFIG_append_pn-qemu-native = " sdl"
>>  PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
>>  #ASSUME_PROVIDED += "libsdl-native"
>> 
>> +#
>> +# Use busybox/mdev for system initialization
>> +#
>> +#VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
>> +#VIRTUAL-RUNTIME_login_manager = "busybox"
>> +#VIRTUAL-RUNTIME_init_manager = "busybox"
>> +#VIRTUAL-RUNTIME_initscripts = "initscripts"
>> +#VIRTUAL-RUNTIME_keymaps = "keymaps"
>> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
>> +
>> +#
>> +# Use systemd for system initialization
>> +#
>> +#DISTRO_FEATURES_append = " systemd sysvinit"
>> +#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> 
> Why is sysvinit included in both DISTRO_FEATURES and
> DISTRO_FEATURES_BACKFILL_CONSIDERED? My understanding is that
> BACKFILL_CONSIDERED only makes sense when the value is not included in
> DISTRO_FEATURES.

There are two possibilities. one where its pure systemd no sysvinit, in this 
case
we should have DISTRO_FEATURES_BACKFILL_CONSIDERED += “sysvinit” and remove
DISTRO_FEATURES_append.

In case where we want sysvinit scripts also be there and systemd can execute on 
them
then above setting is needed as it is. Option 2 is what I have tried to put in 
there

> 
> --
> Tanu



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core