From f1f69f479670d7d5ef28e5efb75d932d956ba736 2016-03-05 12:55:44 From: Chris Landa Date: 2016-03-05 12:55:44 Subject: [PATCH] Added functionality to add custom packages to APT_INCLUDES --- diff --git a/README.md b/README.md index 987ce62..d118955 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ Set Debian packages server address. Choose a server from the list of Debian worl ##### `APT_PROXY`="" Set Proxy server address. Using a local Proxy-Cache like `apt-cacher-ng` will speed-up the bootstrapping process because all required Debian packages will only be downloaded from the Debian mirror site once. +##### `APT_INCLUDES`="" +A comma seperated list of additional packages to be installed during bootstrapping. + #### General system settings: ##### `HOSTNAME`="rpi2-jessie" Set system host name. It's recommended that the host name is unique in the corresponding subnet. diff --git a/rpi2-gen-image.sh b/rpi2-gen-image.sh index ff677d2..a0f7313 100755 --- a/rpi2-gen-image.sh +++ b/rpi2-gen-image.sh @@ -82,7 +82,8 @@ REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-su MISSING_PACKAGES="" # Packages required in the chroot build environment -APT_INCLUDES="apt-transport-https,ca-certificates,debian-archive-keyring,dialog,sudo" +APT_INCLUDES=${APT_INCLUDES:=""} +APT_INCLUDES="${APT_INCLUDES},apt-transport-https,ca-certificates,debian-archive-keyring,dialog,sudo" set +x