summaryrefslogtreecommitdiff
path: root/src/Propellor/Shim.hs
AgeCommit message (Collapse)Author
2019-04-01Added Utility.FileMode to the modules exported by Propellor.UtilitiesJoey Hess
Since File.mode uses FileMode, it seems it ought to be exported by propellor somewhere. I don't want to make propellor Property modules themselves export core data types though, so this is a compromise of dubious utility.
2018-05-03Update shim each time propellor is run in a container, to deal with library ↵Joey Hess
version changes. Surprised this didn't come up before, since propellor was run against progressively old versions of libraries when propelling eg, a chroot. It finally broke on an arm box, where libm got updated to a new version and propellor used a symbol from the new version. The comment says that propellor may be running from an existing shim in which case it's reused. That could be a nested chroot or other container, or perhaps propellor was deployed via a precompiled tarball which is built using a shim. The code used to use "checkAlreadyShimmed shim" which I don't see how it deals with either of those scenarios. Changed to "checkAlreadyShimmed propellorbin", which I think will deal with them, but I've not tested such scenarios. Added code to delete old versions of libraries out of the shim directory to avoid masses of old ones piling up over time. Property.Chroot sets up the shim directory and then bind mounts it into the chroot. To avoid deleting the source of a bind mount, made this only delete files in the shim directory, but not the shim directory itself.
2016-12-24GHC's fileSystemEncoding is used for all String IO, to avoid ↵Joey Hess
encoding-related crashes in eg, Propellor.Property.File.
2015-10-10propellor spinJoey Hess
2015-09-13Follow some hlint suggestions.Mario Lang
2015-09-02Fix bug that caused provisioning new chroots to fail.Joey Hess
2015-07-21fix check for already existing shimJoey Hess
Was not checking the shim file, oops.
2015-05-27Export CommandParam, boolSystem, safeSystem and shellEscape from ↵Joey Hess
Propellor.Property.Cmd, so they are available for use in constricting your own Properties when using propellor as a library. Several imports of Utility.SafeCommand now redundant.
2015-03-12propellor spinJoey Hess
2015-02-16When running shimmed (eg in a docker container), improve process name ↵Joey Hess
visible in ps.
2015-01-06Merge Utiity modules from git-annex.Joey Hess
Except for a few that are using the other exception handling library, that propellor has not switched to yet.
2014-11-22pute full path to bin/propellor inside shimJoey Hess
2014-11-22propellor spinJoey Hess
2014-11-22commentJoey Hess
2014-11-20propellor spinJoey Hess