-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix weston not starting under sysvinit #126
base: master
Are you sure you want to change the base?
Conversation
Related to Freescale#123 Modify configuration files to support sysvinit for weston. * **conf/distro/fsl-wayland.conf** - Set `INIT_MANAGER` to "sysvinit" when sysvinit is used. - Add a conditional check for sysvinit in the `INIT_MANAGER` setting. * **conf/distro/fslc-wayland.conf** - Set `INIT_MANAGER` to "sysvinit" when sysvinit is used. - Add a conditional check for sysvinit in the `INIT_MANAGER` setting. * **recipes-fsl/images/fsl-image-machine-test.bb** - Include necessary sysvinit configurations for weston. - Add a conditional check for sysvinit in the `CORE_IMAGE_EXTRA_INSTALL` setting. * **recipes-fsl/images/fsl-image-multimedia.bb** - Include necessary sysvinit configurations for weston. - Add a conditional check for sysvinit in the `CORE_IMAGE_EXTRA_INSTALL` setting.
@@ -28,4 +28,6 @@ CORE_IMAGE_EXTRA_INSTALL += " \ | |||
'weston weston-init', '', d)} \ | |||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', \ | |||
'weston-xwayland xterm', '', d)} \ | |||
${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \ | |||
'weston-sysvinit', '', d)} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is weston-sysvinit
provided? I can't find it.
@@ -6,7 +6,7 @@ DISTRO = "fsl-wayland" | |||
DISTRO_NAME = "FSL Wayland" | |||
|
|||
# Define Init System | |||
INIT_MANAGER = "systemd" | |||
INIT_MANAGER = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit', 'systemd', d)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you should just set INIT_MANAGER
directly to change to sysvinit
. Then, the poky conf files will setup many variables, including DISTRO_FEATURES
. See https://docs.yoctoproject.org/dev/singleindex.html#term-INIT_MANAGER.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, in this case, there should be a ?=
and let user to override that.
Another thing, think more about that, is we can set that in the base configuration file, so we avoiding repeating that.
Thank you for the feedback, @thochstein and @otavio. @thochstein, regarding your question about where As for the I’ll make these adjustments and update the pull request shortly. Thanks again for your insights! |
Related to #123
Modify configuration files to support sysvinit for weston.
conf/distro/fsl-wayland.conf
INIT_MANAGER
to "sysvinit" when sysvinit is used.INIT_MANAGER
setting.conf/distro/fslc-wayland.conf
INIT_MANAGER
to "sysvinit" when sysvinit is used.INIT_MANAGER
setting.recipes-fsl/images/fsl-image-machine-test.bb
CORE_IMAGE_EXTRA_INSTALL
setting.recipes-fsl/images/fsl-image-multimedia.bb
CORE_IMAGE_EXTRA_INSTALL
setting.