nspawn: beef up nspawn with some btrfs magic

This adds --template= to duplicate an OS tree as btrfs snpashot and run
it

This also adds --ephemeral or -x to create a snapshot of an OS tree and
boot that, removing it after exit.
This commit is contained in:
Lennart Poettering
2014-12-12 13:35:32 +01:00
parent 0254b455e9
commit ec16945ebf
3 changed files with 285 additions and 99 deletions
-1
View File
@@ -82,7 +82,6 @@ int copy_bytes(int fdf, int fdt, off_t max_bytes) {
r = loop_write(fdt, buf, (size_t) n, false);
if (r < 0)
return r;
}
next: