Guest sandmen Posted November 10, 2015 Posted November 10, 2015 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
Igor Posted November 11, 2015 Posted November 11, 2015 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
Guest sandmen Posted November 12, 2015 Posted November 12, 2015 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 ?! 1
Igor Posted November 12, 2015 Posted November 12, 2015 If you want to build into an image template, than you will need to alter a code here: https://github.com/igorpecovnik/lib/blob/second/deboostrap.sh I haven't prepare for such scenario but it's possible, yes.
Recommended Posts