Update Buildroot to 2019.02.3 (#415)
* Update Buildroot to 2019-02.3 * Fix enter script * Update ova_defconfig * Fix network manager * Remove runc patches * Use same docker version * Fix build * Fix vmtools * Fix depens * Fix handling with tempfiles * Fix permission handling * Fix cp * Cleanup * Fix mounts
This commit is contained in:
24
buildroot-external/rootfs-overlay/usr/libexec/hassos-overlay
Executable file
24
buildroot-external/rootfs-overlay/usr/libexec/hassos-overlay
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /mnt/overlay/etc/
|
||||
|
||||
# Network
|
||||
if [ ! -d /mnt/overlay/etc/NetworkManager/system-connections ]; then
|
||||
mkdir -p /mnt/overlay/etc/NetworkManager/system-connections
|
||||
cp -fp /etc/NetworkManager/system-connections/* /mnt/overlay/etc/NetworkManager/system-connections/
|
||||
chmod 600 /mnt/overlay/etc/NetworkManager/system-connections/*
|
||||
fi
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user