From 8d15edd18c8e5e294331f68675db6561e1f67dce Mon Sep 17 00:00:00 2001 From: mithrandi@311efa1b2b5c4999c2edae7da06fb825899e8a82 Date: Mon, 3 Oct 2016 21:50:04 +0000 Subject: Added a comment --- ...ent_2_ce079d5ad9d84d13160748e3adf10c4d._comment | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/forum/Systemd_nspawn_container_failure/comment_2_ce079d5ad9d84d13160748e3adf10c4d._comment (limited to 'doc/forum/Systemd_nspawn_container_failure/comment_2_ce079d5ad9d84d13160748e3adf10c4d._comment') 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\" +``` +"""]] -- cgit v1.2.3