Adding files to an open-system-infrastructure-build image

Kernels & Hardware, configuring network, installing services

Adding files to an open-system-infrastructure-build image

Postby tjcw » 2020-02-05 13:17

I want to add some files to a debian live system built with the open-system-infrastructure-build package; this to do things like setting the desktop background image, or setting the menu structure for the panels in the desktop environment.
How can I learn how to do this ?
tjcw
 
Posts: 22
Joined: 2019-12-08 21:14

Re: Adding files to an open-system-infrastructure-build imag

Postby tjcw » 2020-02-08 07:09

I worked out how to do this, You make a 'hook' shell script, and a tree of files somewhere under the 'config' directory. I had
Code: Select all
tjcw@debian:/ssd/tjcw/oi/freeduc3$ cat config/hooks/live/9900-my-hook.chroot
#!/bin/bash -x
echo "--- Running hook ---"
pwd
cp -pr live-build/config/content/. .

tjcw@debian:/ssd/tjcw/oi/freeduc3$

and
Code: Select all
tjcw@debian:/ssd/tjcw/oi/freeduc3$ find config/content/
..
config/content/usr
config/content/usr/share
config/content/usr/share/pixmaps
config/content/usr/share/pixmaps/freeduc
config/content/usr/share/pixmaps/freeduc/biology.png
config/content/usr/share/pixmaps/freeduc/history.png
...

Then the live build process runs the hook at the right time, and the files are copied to the live imasge.
tjcw
 
Posts: 22
Joined: 2019-12-08 21:14


Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable