good question, haven't had a sysvinit system in ages... so no easy "let's test it on this platform" :-s do you happen to have one?
should the patch include a warning to sysvinit users like "not supported" "config switch only applies to systemd" ... suggestions? (-: the only sysvinit+getty reference i see in the code is ./meta/recipes-core/sysvinit/sysvinit-inittab/start_getty which relies on a symlinked getty - possibly provided by busybox or others? regards ________________________________ From: Ross Burton <[email protected]> Sent: Wednesday, July 27, 2022 17:30 To: SCHNEIDER Johannes <[email protected]> Cc: [email protected] <[email protected]> Subject: Re: [OE-core] [meta-oe][PATCH v2] classes: rootfs-postcommands: autologin root on serial-getty [You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. > +serial_autologin_root () { > + if [ -e ${IMAGE_ROOTFS}${systemd_system_unitdir}/[email protected] > ]; then > + sed -i '/^\s*ExecStart\b/ s/getty /&--autologin root /' \ > + > "${IMAGE_ROOTFS}${systemd_system_unitdir}/[email protected]" > + fi > +} What about images using sysvinit? Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#168592): https://lists.openembedded.org/g/openembedded-core/message/168592 Mute This Topic: https://lists.openembedded.org/mt/92623778/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
