Jump to content

Hint? possibility to go into chroot and compile some applications


Guest sandmen

Recommended Posts

Guest sandmen

Igor,

to add some applications ( for example, https://github.com/Freescale/gstreamer-imx), it would be nice to have the possibility,

to enter at some point into the chroot, and compiling software, and installing it.

 

Or, add a "just mount exisiting image" function to your scripts.

For example, base image is finished, and then I can use a function, that unpack, mount, the existing image, and allow "the costumer" to enter into chroot.

 

What do you think?

 

Peter

Link to comment
Share on other sites

It's already possible but maybe not solved the best way. First is simple:

AFTERINSTALL=""	         # last command before closing image, example: apt-get install joe

If you have your own script, copy it to /tmp because those directories are linked.

AFTERINSTALL="./tmp/yourextrascript.sh"

Other option is to add things here:

 

https://github.com/igorpecovnik/lib/blob/second/common.sh#L244

Link to comment
Share on other sites

Guest sandmen

It's already possible but maybe not solved the best way. First is simple:

AFTERINSTALL=""	         # last command before closing image, example: apt-get install joe

If you have your own script, copy it to /tmp because those directories are linked.

AFTERINSTALL="./tmp/yourextrascript.sh"

Other option is to add things here:

 

https://github.com/igorpecovnik/lib/blob/second/common.sh#L244

Currently I have done it in this way...

clear
echo "chroot "$DEST"/cache/sdcard /bin/bash"
read -p "Press any key..."
closing_image

in main.sh.

 

But, if I close the image. Are the changes stored for a "new" session.

I think, I will loose the changes, if I run the script again ?!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines