From: Roman Yeryomin Date: Sat, 19 Dec 2015 21:38:02 +0000 (+0200) Subject: fstools: allow to stack another overlay on top of existing one X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d90165cdbdac40e6e2699d831e13473479d8cb79;p=oweals%2Ffstools.git fstools: allow to stack another overlay on top of existing one `mount_root ram' will pivot existing root to ram even if it was overlayfs already. Useful when playing with new configurations as it allows to preserve existing/stable configuration. Signed-off-by: Roman Yeryomin --- diff --git a/mount_root.c b/mount_root.c index 7b69c7f..bf70265 100644 --- a/mount_root.c +++ b/mount_root.c @@ -117,6 +117,8 @@ int main(int argc, char **argv) { if (argc < 2) return start(argc, argv); + if (!strcmp(argv[1], "ram")) + return ramoverlay(); if (!strcmp(argv[1], "stop")) return stop(argc, argv); if (!strcmp(argv[1], "done"))