IBM / ibmichroot

A set of scripts to facilitate the use of chroot-based containers for IBM i
MIT License
21 stars 9 forks source link

Proposal: pkg_files in chroot_setup.sh #16

Closed abmusse closed 9 years ago

abmusse commented 9 years ago

Original report by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).


I would like to propose a change to chroot_setup.sh but wanted to make sure I am not missing something before I code it.

Currently the process of creating a chroot environment and subsequently adding packages is a manual process (i.e. after I run chroot_setup.sh I then have to chroot into environment and run pkg_setup.sh). It would be good if we could add a :pkg_files section to xxxx.lst files so we could, for example, run perzl_bash_4.3.lst from chroot_myversion.lst.

Example

File: chroot_myversion.lst

:pkg_files
pkg_perzl_bash-4.3.lst

Thoughts @rangercairns?

abmusse commented 9 years ago

Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).


I just realized the :sh section can accomplish this....

chroot_xxxxx.lst:

:sh
./pkg_setup.sh pkg_gcc-4.6.2.lst

I will retract this feature request.

abmusse commented 9 years ago

Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).


we want both scripts to be able to run independently (not merged to one script),

Agreed. I will work on this later this week (hopefully).

abmusse commented 9 years ago

Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).


Ok by me. -- but --- to be clear, we want both scripts to be able to run independently (not merged to one script), thereby people not doing chroot at all can still use any pkgxxx.lst in root file system.