* How to modify omap3-console-image recipe to modify /etc/inittab
@ 2010-05-05 16:28 Elvis Dowson
2010-05-05 17:40 ` Koen Kooi
2010-05-05 18:36 ` Ash Charles
0 siblings, 2 replies; 3+ messages in thread
From: Elvis Dowson @ 2010-05-05 16:28 UTC (permalink / raw)
To: OpenEmbedded Developer
Hi,
How can I modify the omap3-console-image recipe to modify the /etc/inittab file from
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
to
c1:12345:respawn:/sbin/agetty -n -l /usr/sbin/autologin 38400 tty1 linux
after the rootfs is fully created?
Best regards,
Elvis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to modify omap3-console-image recipe to modify /etc/inittab
2010-05-05 16:28 How to modify omap3-console-image recipe to modify /etc/inittab Elvis Dowson
@ 2010-05-05 17:40 ` Koen Kooi
2010-05-05 18:36 ` Ash Charles
1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2010-05-05 17:40 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05-05-10 18:28, Elvis Dowson wrote:
> Hi,
> How can I modify the omap3-console-image recipe
There's no such recipe in OE. Without the recipe I can't really say what
the best way to do it is. I think patching sysvinit would be the best
option, otherwise you'll loose the changes on package upgrades
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFL4a2mMkyGM64RGpERAlZIAJ9W3acFGhZSLvlayvgLua5a4uePAACfVwCS
Ke4AUh2NFtscc+IUX8pujHM=
=z3Nr
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to modify omap3-console-image recipe to modify /etc/inittab
2010-05-05 16:28 How to modify omap3-console-image recipe to modify /etc/inittab Elvis Dowson
2010-05-05 17:40 ` Koen Kooi
@ 2010-05-05 18:36 ` Ash Charles
1 sibling, 0 replies; 3+ messages in thread
From: Ash Charles @ 2010-05-05 18:36 UTC (permalink / raw)
To: openembedded-devel
On Wed, May 5, 2010 at 9:28 AM, Elvis Dowson <elvis.dowson@mac.com> wrote:
> How can I modify the omap3-console-image recipe to modify the /etc/inittab file from
>
> c1:12345:respawn:/sbin/agetty 38400 tty1 linux
> to
>
> c1:12345:respawn:/sbin/agetty -n -l /usr/sbin/autologin 38400 tty1 linux
>
> after the rootfs is fully created?
I made an addition to my autologin recipe that does this:
pkg_postinst_${PN} () {
sed 's_S:2345:respawn:/sbin/getty_S:2345:respawn:/sbin/getty -n -l
/usr/bin/autologin_' /etc/inittab > inittab.tmp
mv inittab.tmp /etc/inittab
passwd -d root
echo 'NOTE: remove the password from the root account'
}
pkg_prerm_${PN} () {
sed 's_ -n -l /usr/bin/autologin__' /etc/inittab > inittab.tmp
mv inittab.tmp /etc/inittab
echo 'NOTE: there is still no password on the root account'
}
Does this make sense? I don't know if this is the ideal way to do it
but it seems to work for me.
-Ash
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-05 18:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 16:28 How to modify omap3-console-image recipe to modify /etc/inittab Elvis Dowson
2010-05-05 17:40 ` Koen Kooi
2010-05-05 18:36 ` Ash Charles
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.