mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 09:20:08 +01:00
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.
8 lines
138 B
Bash
8 lines
138 B
Bash
#!/bin/bash -e
|
|
|
|
/usr/bin/_nm-in-container-setup.sh
|
|
|
|
cat <<EOF > /etc/resolv.conf
|
|
# Generated by /etc/rc.d/rc.local
|
|
nameserver 8.8.8.8
|
|
EOF
|