bdcs-0.5.0: Tools for managing a content store of software packages

Copyright(c) 2017 Red Hat Inc.
LicenseLGPL
Maintainerhttps://github.com/weldr
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

BDCS.Export.Utils

Description

Miscellaneous utilities useful in exporting objects.

Synopsis

Documentation

runHacks :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> m () Source #

Run filesystem hacks needed to make a directory tree bootable. Any exporter that produces a finished image should call this function. Otherwise, it is not generally useful and should be avoided. The exact hacks required is likely to change over time.

Any exceptions from Exception will be convered into Except style exceptions, which can then be handled via catchError from that module.

runTmpfiles :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> m () Source #

Run tmpfiles.d snippet on the new directory. Most exporters should call this function. Otherwise, it is not generally useful and should be avoided.

Any exceptions from Exception will be convered into Except style exceptions, which can then be handled via catchError from that module.