NetworkManager/tools/nm-guest-data
Íñigo Huguet d00a5d2a8b tools: nm-in-container: don't generate files from the script
The script was generating the data-* files that later copies to the
container.

In order to the files being reusable for nm-in-vm, put them as separate
files inside the data directory.

However, some of the files need the full path to NetworkManager project,
which varies for each user. Instead, make a sed replacement on them and
generate the actual files that will be copied. Replacement:
{{BASEDIR_NM}} -> $BASEDIR_NM

Also, rename the files to more descriptive names, using some prefixes
that give a hint of where those files will be put, and the .in extension
to indicate that they will be processed.
2023-09-21 15:53:03 +02:00
..
.gitignore tools: nm-in-container: move data to a common path for nm-in-vm 2023-09-21 15:53:03 +02:00
bin-_nm-in-container-setup.sh.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
bin-nm-deploy.sh.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
bin-nm-env-prepare.sh.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-bashrc.my.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-motd-container.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-motd-vm.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
etc-rc.local.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-bash_history.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-behaverc.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-gdb_history.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
home-gdbinit.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
nm-90-my.conf.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
nm-95-user.conf.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00
README.md tools: nm-in-container: move data to a common path for nm-in-vm 2023-09-21 15:53:03 +02:00
systemd-20-nm.override.in tools: nm-in-container: don't generate files from the script 2023-09-21 15:53:03 +02:00

Run NetworkManager in Container for Development

Run nm-in-container script for running NetworkManager in a non-root, privileged podman container. Run nm-in-vm to do it in a vitual machine. This is useful for testing NetworkManager for development.

Try ./nm-in-container --help or ./nm-in-vm --help to see options. Inside the container, see the bash history for useful commands and read the hints in "/etc/motd".