Safe Haskell | None |
---|---|
Language | Haskell98 |
Propellor.Property.Debootstrap
- type Url = String
- data DebootstrapConfig
- built :: FilePath -> System -> DebootstrapConfig -> Property Linux
- built' :: Property Linux -> FilePath -> System -> DebootstrapConfig -> Property Linux
- extractSuite :: System -> Maybe String
- installed :: RevertableProperty Linux Linux
- sourceInstall :: Property Linux
- programPath :: IO (Maybe FilePath)
Documentation
data DebootstrapConfig Source #
A monoid for debootstrap configuration. mempty is a default debootstrapped system.
Constructors
DefaultConfig | |
MinBase | |
BuilddD | |
DebootstrapParam String | |
DebootstrapConfig :+ DebootstrapConfig |
Instances
Show DebootstrapConfig Source # | |
Monoid DebootstrapConfig Source # | |
built :: FilePath -> System -> DebootstrapConfig -> Property Linux Source #
Builds a chroot in the given directory using debootstrap.
The System can be any OS and architecture that debootstrap and the kernel support.
extractSuite :: System -> Maybe String Source #
installed :: RevertableProperty Linux Linux Source #
Ensures debootstrap is installed.
When necessary, falls back to installing debootstrap from source. Note that installation from source is done by downloading the tarball from a Debian mirror, with no cryptographic verification.
programPath :: IO (Maybe FilePath) Source #
Finds debootstrap in PATH, but fall back to looking for the wrapper script that is installed, outside the PATH, when debootstrap is installed from source.