Add editvm.sh TEMPLATE CMD command
This commit is contained in:
parent
6d81507a99
commit
787a678a79
6 changed files with 139 additions and 2 deletions
12
README.md
12
README.md
|
|
@ -67,6 +67,18 @@ The `mkvm.sh` script takes the type of container to run as first argument. That
|
|||
|
||||
Unless the `--keep` argument is passed, the container is also destroyed after running.
|
||||
|
||||
## Edit the template filesystem
|
||||
|
||||
If you need to change a template's rootfs, for running updates or adding packages, you can use the `editvm.sh` script:
|
||||
|
||||
```
|
||||
editvm.sh archlinux bash
|
||||
```
|
||||
|
||||
This will fail if the ramdisk service is still running, so first stop all your containers, stop the ramdisk service, and try again. Don't forget to restart the ramdisk service after you're done.
|
||||
|
||||
If the LXC you want to use does not use a rootfs with its own name in the `/ramdisk/persist/` folder, the script will also error out.
|
||||
|
||||
## License
|
||||
|
||||
GNU aGPL v3
|
||||
|
|
|
|||
Loading…
Reference in a new issue