NetworkManager/contrib/fedora/nm-live-vm
Thomas Haller 3fab322a20 netlink: drop libnl3 dependency
From libnl3, we only used the helper function to parse/generate netlink
messages and the socket functions to send/receive messages. We don't
need an external dependency to do that, it is simple enough.

Drop the libnl3 dependency, and replace all missing code by directly
copying it from libnl3 sources. At this point, I mostly tried to
import the required bits to make it working with few modifications.

Note that this increases the binary size of NetworkManager by 4736 bytes
for contrib/rpm build on x86_64. In the future, we can simplify the code
further.

A few modifications from libnl3 are:

- netlink errors NLE_* are now in the domain or regular errno.
  The distinction of having to bother with two kinds of error
  number domains was annoying.

- parts of the callback handling is copied partially and unused parts
  are dropped. Especially, the verbose/debug handlers are not used.
  In following commits, the callback handling will be significantly
  simplified.

- the complex handling of seleting ports was simplified. We now always
  let kernel choose the right port automatically.
2018-02-21 12:08:46 +01:00
..
.gitignore contrib/nm-live-vm: change scripts to be run by unprevileged user 2014-06-30 17:42:09 +02:00
build.sh netlink: drop libnl3 dependency 2018-02-21 12:08:46 +01:00
nm-make-script.sh contrib/nm-live-vm: install wget and setup bashrc and git 2014-06-30 17:42:09 +02:00
README contrib/nm-live-vm: update scripts to make VM based on Fedora 20 2014-06-30 17:42:09 +02:00
run.sh contrib/nm-live-vm: fix run.sh script to into script directory 2014-06-30 17:42:09 +02:00
self-extract.sh contrib/nm-live-vm: don't remove the temporary directory with the extracted VM image 2014-06-30 17:42:09 +02:00

NetworkManager live VM scripts
------------------------------

This set of scripts can be used to build a live initramfs image suitable for
testing NetworkManager in a virtual environment. The scripts themselves are
intended to be used by a power user who can adapt them to their needs. The
result, on the contrary, is intended to be used by anyone who wants to play
with NetworkManager on the command line.

Building the initramfs image:

sudo ./build.sh [-n name] [-b branch/commit]

You may have to update ./build.sh to suit your distribution. The included
version is prepared for Fedora 20 and the image is also build using Fedora 20
repositories.

Then you can distribute the self-extracting archive and run it on other machines:

./nm-live-vm-bundle.sh