From 27635a19c9d9ff654b95e5685a19661272732dd6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 23 Oct 2015 11:32:49 -0400 Subject: propellor spin --- src/Propellor/Property/DiskImage.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Propellor/Property/DiskImage.hs b/src/Propellor/Property/DiskImage.hs index f1f2f79e..56ee2a8c 100644 --- a/src/Propellor/Property/DiskImage.hs +++ b/src/Propellor/Property/DiskImage.hs @@ -324,7 +324,8 @@ imageFinalized (_, final) mnts devs (PartTable _ parts) = writefstab top = do old <- catchDefaultIO "" $ readFileStrict "/etc/fstab" - new <- genFstab (catMaybes mnts) swaps (toSysDir top) + new <- genFstab (map (top ++) (catMaybes mnts)) + swaps (toSysDir top) writeFile "/etc/fstab" (unlines new ++ old) swaps = map (SwapPartition . partitionLoopDev . snd) $ filter ((== LinuxSwap) . partFs . fst) $ -- cgit v1.3-2-g0d8e