diff options
| author | Joey Hess <joeyh@joeyh.name> | 2016-10-03 18:05:24 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2016-10-03 18:05:24 -0400 |
| commit | c77f56ebf3abd2902ddf0efcc8bebf1dc75c640a (patch) | |
| tree | 99cf557d85567c869ca7bc16b639939fe1a45051 /doc/forum/Systemd_nspawn_container_failure | |
| parent | 8fd86cc60a82baae7afadbcd62b4cdd8f05cbf43 (diff) | |
| parent | 8d15edd18c8e5e294331f68675db6561e1f67dce (diff) | |
Merge branch 'master' of ssh://propellor.branchable.com
Diffstat (limited to 'doc/forum/Systemd_nspawn_container_failure')
| -rw-r--r-- | doc/forum/Systemd_nspawn_container_failure/comment_2_ce079d5ad9d84d13160748e3adf10c4d._comment | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/forum/Systemd_nspawn_container_failure/comment_2_ce079d5ad9d84d13160748e3adf10c4d._comment b/doc/forum/Systemd_nspawn_container_failure/comment_2_ce079d5ad9d84d13160748e3adf10c4d._comment new file mode 100644 index 00000000..849af576 --- /dev/null +++ b/doc/forum/Systemd_nspawn_container_failure/comment_2_ce079d5ad9d84d13160748e3adf10c4d._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="mithrandi@311efa1b2b5c4999c2edae7da06fb825899e8a82" + nickname="mithrandi" + subject="comment 2" + date="2016-10-03T21:50:04Z" + content=""" +Indeed, your guess was correct: `Debootstrap.installed` prints `debootstrap installed ... ok` even on the first run, but in fact it is not installed. I believe this patch fixes the problem: + +``` +diff --git a/src/Propellor/Property/Debootstrap.hs b/src/Propellor/Property/Debootstrap.hs +index 59850c4..f9737ca 100644 +--- a/src/Propellor/Property/Debootstrap.hs ++++ b/src/Propellor/Property/Debootstrap.hs +@@ -100,7 +100,7 @@ extractSuite (System (FreeBSD _) _) = Nothing + installed :: RevertableProperty Linux Linux + installed = install <!> remove + where +- install = check (isJust <$> programPath) $ ++ install = check (isNothing <$> programPath) $ + (aptinstall `pickOS` sourceInstall) + `describe` \"debootstrap installed\" +``` +"""]] |
