summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-06-21 12:20:02 -0400
committerAndrew Cady <d@jerkface.net>2019-06-21 12:20:02 -0400
commit03a5ac7237a1ea0a6eb492958567aaf4a984c43d (patch)
treee46ba54adb96f7b7941b44198fe200773262686a
parent150c66fef4fafe04783144989dd8edca614380bd (diff)
call dpkg with different options
-rw-r--r--fsmgr.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/fsmgr.hs b/fsmgr.hs
index 429b0a1..894bd29 100644
--- a/fsmgr.hs
+++ b/fsmgr.hs
@@ -56,7 +56,9 @@ buildRoot config@DiskImageConfig{..} finalOut = do
56 -- "Required" even if no packages are specified. When there is a parent, 56 -- "Required" even if no packages are specified. When there is a parent,
57 -- assume that this has already happened. 57 -- assume that this has already happened.
58 cmd_ "selfstrap --skip-update" (("--unpack" `consWhen` unpackOnly) ["-t", mountpoint]) packageNames 58 cmd_ "selfstrap --skip-update" (("--unpack" `consWhen` unpackOnly) ["-t", mountpoint]) packageNames
59 forM_ debs $ \pkg -> do cmd_ "dpkg -i --root" [mountpoint, pkg] 59 forM_ debs $ \pkg -> do cmd_ (AddEnv "DEBIAN_FRONTEND" "noninteractive")
60 ["dpkg"] [if unpackOnly then "--unpack" else "--install"]
61 ["--root", mountpoint, pkg]
60 {- 2.5. install apt package cache -} 62 {- 2.5. install apt package cache -}
61 -- TODO 63 -- TODO
62 {- 3. binaries -} 64 {- 3. binaries -}