Commit Graph

17 Commits

Author SHA1 Message Date
Olaf Meeuwissen b7aed4cd38 Address dpkg-divert deprecation warning. Fixes #17 2019-11-04 14:01:42 +09:00
Olaf Meeuwissen 0595d723ab Protect against inconsistent use of / separators in APT paths
As a matter of fact, our own fallback would not even have worked :-(
The `readlink` invocations clean up duplicated and trailing slashes.
2017-10-23 20:40:32 +09:00
Olaf Meeuwissen f4d9f5430a Use release code names thoughout and exclusively. Fixes #8 2017-10-22 17:15:02 +09:00
Olaf Meeuwissen e721ebc454 Clean up script permissions
They are all installed with executable permissions in the root file
system so there is no need to have them on the scripts in that are
kept in the repository.
2017-10-14 20:18:19 +09:00
Olaf Meeuwissen d7a45d22af Replace suite name with alias in sources.list
This keeps the image at the same major release even in case of later
stable releases.
2017-08-28 20:28:49 +09:00
Olaf Meeuwissen 01d9130021 Use here documents in a consistent manner 2017-08-19 15:09:08 +09:00
Olaf Meeuwissen d92fe56e7b Remove unneeded files from the image
Keeping out the `/dev/` tree is done when tarring things up so that
the `bootstrap.sh` script will have access to devices at run-time.
This approach also protects against removing devices that have been
mounted into the chroot, if any (e.g. devpts).
2017-08-19 14:27:34 +09:00
Olaf Meeuwissen e4bd65c005 Set a generic yet descriptive hostname
The default is to inherit the hostname from the build environment.
2017-08-19 14:27:34 +09:00
Olaf Meeuwissen bbf24ada3b Replace /etc/resolv.conf content with something generic 2017-08-18 22:55:46 +09:00
Olaf Meeuwissen ad5af964fc Don't run init scripts from installation scripts 2017-08-18 22:55:46 +09:00
Olaf Meeuwissen 6dabc61089 Remove automatically installed packages whenever possible
This marks all packages installed by `debootstrap` as automatic and
sets up policy for pruning purposes before purging unneeded ones.
The devuan-keyring is explicitly kept.
2017-08-18 22:55:16 +09:00
Olaf Meeuwissen 18399c5561 Speed up package installation (especially on spinning disks) 2017-08-18 12:23:36 +09:00
Olaf Meeuwissen b636a469a2 Keep package index files small
This is mostly for those cases where Dockerfile RUN instructions do
not run `remove-apt-lists`, either by accident or on purpose.
2017-08-18 12:20:31 +09:00
Olaf Meeuwissen fa237f67eb Don't bother downloading translated package descriptions
This might speed up `apt-get update` depending on environment settings
and availability of translations.
2017-08-18 12:17:18 +09:00
Olaf Meeuwissen d3530e7ea9 Fix permissions to match installed state 2017-08-18 10:54:25 +09:00
Olaf Meeuwissen 6595d68dd1 Fix overly zealous removal of APT state and cache files
Removal of the package index files, aka lists, is something that needs
to be done explicitly.  Doing so at `APT::Update::Post-Invoke` defeats
the purpose of running `apt-get update` in the first place.
2017-08-17 17:11:06 +09:00
Olaf Meeuwissen 0fa8b8505b Keep "flab" out of the image
This integrates a custom script into the APT configuration.  That same
script is also run during the bootstrap.  A second custom script takes
care of the integration and removes itself when done.

Complements 13f84159.
2017-08-17 11:36:04 +09:00