I don't find the '-f' option in the script which is the topic of this thread of much use, it needs to be distilled.
Personally, I find it helpful remastering an iso image when copying files, especially when you need some custom packages.
I can trick the script by
myscript -f /path/to/an/empty/directory `cat list-of-wanted-packages`, and get a full list.
To that end here's my script if you want to incorporate it.
Thanks, we learn something new every day ![Smiley :)](https://forum.tinycorelinux.net/Smileys/default/smiley.gif)
It's more in the busybox style, in that you need to create symlinks to get the different functionality.
I learn something new today, I never knew "while" and "read" can be combined and have several variables.
![Cheesy :D](https://forum.tinycorelinux.net/Smileys/default/cheesy.gif)
Also, a script called from different symlinks can have different result, knowledge acquired! It does share a similarity with busybox.
![Grin ;D](https://forum.tinycorelinux.net/Smileys/default/grin.gif)
Your script is amazing, I'll need some time to digest that.
![Smiley :)](https://forum.tinycorelinux.net/Smileys/default/smiley.gif)
Thanks for the script, will work on it when I have time for it.
![Wink ;)](https://forum.tinycorelinux.net/Smileys/default/wink.gif)
Life gets in the way.
![Tongue :P](https://forum.tinycorelinux.net/Smileys/default/tongue.gif)
Oh, before I go, I notice that you use "readlink" for the linking.
Personally I prefer using "realpath" instead, cause some packages might have libraries that link to each other by tce.installed script.
(Haven't seen one yet, but just in case)
For instance:
/usr/local/lib/libA.so --> /tmp/tcloop/libA/usr/local/lib/libA.so
/usr/local/lib/libA.so.1 --> /usr/local/lib/libA.so
readlink /usr/local/lib/libA.so
/tmp/tcloop/libA/usr/local/lib/libA.so --> Good, that's what we want.
readlink /usr/local/lib/libA.so.1
/usr/local/lib/libA.so --> OMG, I need to read again ??
realpath /usr/local/lib/libA.so.1
/tmp/tcloop/libA/usr/local/lib/libA.so --> Straight to the target.
![Cheesy :D](https://forum.tinycorelinux.net/Smileys/default/cheesy.gif)