diff options
| author | mithrandi@311efa1b2b5c4999c2edae7da06fb825899e8a82 <mithrandi@web> | 2016-10-03 21:50:04 +0000 |
|---|---|---|
| committer | admin <admin@branchable.com> | 2016-10-03 21:50:04 +0000 |
| commit | 8d15edd18c8e5e294331f68675db6561e1f67dce (patch) | |
| tree | f265610dc4fdd4bffbef7d30a14538e5706cd19e /doc/forum/Systemd_nspawn_container_failure | |
| parent | 90108e839d34fd7083c5a7dadb5f8895f9ec19f2 (diff) | |
Added a comment
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\" +``` +"""]] |
