Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabiand/edit-node-guestfs

A guestfs based edit-node
https://github.com/fabiand/edit-node-guestfs

Last synced: about 2 months ago
JSON representation

A guestfs based edit-node

Awesome Lists containing this project

README

        

edit-node-guestfs
=================

> Note: This is a POC!

A guestfs based edit-node.

This is how it works:

1. guestfish is used to extract the ext3fs.img from an existing LiveCD ISO
2. guestfish is used to run a script inside the ext3fs.img (which is mounted inside a VM)
3. Classic tools are used to rebuild the LiveCD ISO (TBD)

Usage:

edit-iso.sh []

Where
* `isoname` is the path to an existing ISO.
* `cmd` is a predefined cmd - a list of comands is printed when you don't provide a ``
* `cmdargs` (optional) Some commands take arguments (like `yum-install`)

Example:

sudo setsebool -P virt_use_fusefs 1
edit-iso.sh info

Will print some informations about the iso (system-release and ovirt rpms)

## Notes
* `setsebool -P virt_use_fusefs 1` needs to be enabled to allow guestfs to mount nested images
* This might not work on RHEL because guestmount is used - which in turn uses FUSE
* This tool does not yet require root rights, as the VM is spawned in a qemu session