summaryrefslogtreecommitdiff
path: root/fsmgr.hs
diff options
context:
space:
mode:
Diffstat (limited to 'fsmgr.hs')
-rw-r--r--fsmgr.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/fsmgr.hs b/fsmgr.hs
index d28c0e4..a96bc1b 100644
--- a/fsmgr.hs
+++ b/fsmgr.hs
@@ -34,7 +34,12 @@ noParent (EmptyImageOfBytes _) = True
34noParent (ParentImageConfigFile _) = False 34noParent (ParentImageConfigFile _) = False
35 35
36dynamicNames :: FilePath -> FilePath 36dynamicNames :: FilePath -> FilePath
37dynamicNames = replace "$(karch)" uname 37dynamicNames = replace "$(karch)" uname . replace "$(debarch)" debarch
38
39debarch :: String
40debarch = unsafePerformIO $ do
41 Stdout out <- cmd "dpkg-architecture -q DEB_BUILD_ARCH"
42 return out
38 43
39uname :: String 44uname :: String
40uname = unsafePerformIO $ do 45uname = unsafePerformIO $ do