block: do a final round of swapfile mounting in main_mount()
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 16 Aug 2013 13:04:59 +0000 (15:04 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 16 Aug 2013 13:11:17 +0000 (15:11 +0200)
This allows reenabling swap after "swapoff -a" when all other partitions are mounted already.

block.c

diff --git a/block.c b/block.c
index 723c0f0456413c353c32358706e01050ef6b28a9..d4cf08945592af608b3485b50cc794267ae3f3b7 100644 (file)
--- a/block.c
+++ b/block.c
@@ -957,6 +957,8 @@ static int main_mount(int argc, char **argv)
        list_for_each_entry(pr, &devices, list)
                mount_device(pr, 0);
 
+       handle_swapfiles(true);
+
        return 0;
 }