All of lore.kernel.org
 help / color / mirror / Atom feed
* changing system configuration in a customized image
@ 2010-01-17  9:11 Stefan Buschmann
  2010-01-18 17:25 ` Rolf Leggewie
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Buschmann @ 2010-01-17  9:11 UTC (permalink / raw)
  To: openembedded-devel

Hi all!

I'm using a customized image of SHR that includes some additional 
packages I like to have installed automatically as well as a package 
that should include the changes to the system configuration that I need. 
It would just be nice to have this done automatically rather than having 
to tweak the system by hand every time I build and install a new image 
on the device.

So e.g. I would like to change configuration files and execute some 
commands:
- Add a system user
- Install customized version of '/etc/samba/smb.conf'
- Set samba password via 'smbpasswd'

I think I can't simply run those commands via install or staging task, 
because I wouldn't be able to run something like 'smbpasswd' there. So I 
figure the way to go would be to add a configuration script which runs 
only on the first system start, that can modify the configuration files 
and run the necessary commands.

So is this the right approach? How can I add such a script? I tried to 
find out by looking into e.g. the recipe for 'alsa' but didn't find a 
clue there. Also I'm making my way through the OpenEmbedded User Manual 
but couldn't find it there either.

Thanks,

Stefan




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

* Re: changing system configuration in a customized image
  2010-01-17  9:11 changing system configuration in a customized image Stefan Buschmann
@ 2010-01-18 17:25 ` Rolf Leggewie
  0 siblings, 0 replies; 2+ messages in thread
From: Rolf Leggewie @ 2010-01-18 17:25 UTC (permalink / raw)
  To: openembedded-devel

Stefan Buschmann wrote:
> I'm using a customized image of SHR that includes some additional 
> packages I like to have installed automatically as well as a package 
> that should include the changes to the system configuration that I need. 

I'd be very interested in something like this as well but haven't cooked
up a solution, yet.  My thoughts were leaning towards creation of a
package that includes the necessary files and does some customization in
postinst.




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

end of thread, other threads:[~2010-01-18 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-17  9:11 changing system configuration in a customized image Stefan Buschmann
2010-01-18 17:25 ` Rolf Leggewie

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.