* Drop default NetworkManager configuration NetworkManager will automatically connect using the global defaults. Also Supervisor today will create a profiles once the user configures the network explicitly. * Create system-connection directory
21 lines
488 B
Bash
Executable File
21 lines
488 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mkdir -p /mnt/overlay/etc/
|
|
|
|
# Network
|
|
mkdir -p /mnt/overlay/etc/NetworkManager/system-connections
|
|
|
|
if [ ! -f /mnt/overlay/etc/hostname ]; then
|
|
cp -fp /etc/hostname /mnt/overlay/etc/hostname
|
|
fi
|
|
|
|
if [ ! -f /mnt/overlay/etc/hosts ]; then
|
|
cp -fp /etc/hosts /mnt/overlay/etc/hosts
|
|
fi
|
|
|
|
# TimeSync
|
|
if [ ! -f /mnt/overlay/etc/systemd/timesyncd.conf ]; then
|
|
mkdir -p /mnt/overlay/etc/systemd
|
|
cp -fp /etc/systemd/timesyncd.conf /mnt/overlay/etc/systemd/timesyncd.conf
|
|
fi
|