##// END OF EJS Templates
Added ability to install custom packages
Stephen A. Brandli -
r86:d4a066f30735
parent child
Show More
@@ -1,5 +1,6
1 images
1 images
2 custom.d
2 custom.d
3 packages
3 *.swp
4 *.swp
4 *.bak
5 *.bak
5 *.log
6 *.log
@@ -281,6 +281,10 All the required configuration files that will be copied to the generated OS ima
281 | `sysctl.d` | Swapping and Network Hardening configuration |
281 | `sysctl.d` | Swapping and Network Hardening configuration |
282 | `xorg` | fbturbo Xorg driver configuration |
282 | `xorg` | fbturbo Xorg driver configuration |
283
283
284 Debian custom packages, i.e. those not in the debian repositories, can be installed by placing them in the `packages` directory. They are installed immediately after packages from the repositories are installed. Any dependencies listed in the custom packages will be downloaded automatically from the repositories. Do not list these custom packages in `APT_INCLUDES`.
285
286 Scripts in the custom.d directory will be executed after all other installation is complete but before the image is created.
287
284 ## Logging of the bootstrapping process
288 ## Logging of the bootstrapping process
285 All information related to the bootstrapping process and the commands executed by the `rpi2-gen-image.sh` script can easily be saved into a logfile. The common shell command `script` can be used for this purpose:
289 All information related to the bootstrapping process and the commands executed by the `rpi2-gen-image.sh` script can easily be saved into a logfile. The common shell command `script` can be used for this purpose:
286
290
@@ -34,4 +34,13 fi
34 # Upgrade package index and update all installed packages and changed dependencies
34 # Upgrade package index and update all installed packages and changed dependencies
35 chroot_exec apt-get -qq -y update
35 chroot_exec apt-get -qq -y update
36 chroot_exec apt-get -qq -y -u dist-upgrade
36 chroot_exec apt-get -qq -y -u dist-upgrade
37
38 if [ -d packages ] ; then
39 for package in packages/*.deb ; do
40 cp $package ${R}/tmp
41 chroot_exec dpkg --unpack /tmp/$(basename $package)
42 done
43 fi
44 chroot_exec apt-get -qq -y -f install
45
37 chroot_exec apt-get -qq -y check
46 chroot_exec apt-get -qq -y check
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant