| Age | Commit message (Collapse) | Author |
|
|
|
* Added ConfigurableValue type class, for values that can be used in a
config file, or to otherwise configure a program.
* The val function converts such values to String.
This was motivated by the bug caused by type Port = Int changing to
newtype Port = Port Int deriving Show
After that change, some things that used show port to generate config
files were broken. By using the ConfigurableValue type class instead,
such breakage can be prevented.
|
|
Signed-off-by: Zihao Wang <dev@wzhd.org>
|
|
|
|
* Properties that run an arbitrary command, such as cmdProperty
and scriptProperty are converted to use UncheckedProperty, since
they cannot tell on their own if the command truely made a change or not.
(API Change)
Transition guide:
- When GHC complains about an UncheckedProperty, add:
`assume` MadeChange
- Since these properties used to always return MadeChange, that
change is always safe to make.
- Or, if you know that the command should modifiy a file, use:
`changesFile` filename
* A few properties have had their Result improved, for example
Apt.buldDep and Apt.autoRemove now check if a change was made or not.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Untested, and grub booting not done.
|
|
(cherry picked from commit 7087a94b21a086a98784d17b45dd2b7779e320e9)
|
|
noticed kpartx could get confused if a disk image it had mapped was deleted and a fresh one mapped
|
|
|
|
|
|
|
|
|
|
|
|
Including support for formatting partitions of a disk image file.
|
|
|