Skip to contentSkip to conversation

changing system configuration in a customized image

DISCUSSION Stefan Buschmann 2 participants 2 messages Jan 17, 2010 – Jan 18, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · Stefan Buschmann

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.