add ramfs to HAL (#212)

This commit is contained in:
Danko Miladinovic
2024-08-23 15:30:04 +02:00
committed by GitHub
parent ee8370406c
commit 4c80b574e3
4 changed files with 16 additions and 7 deletions
@@ -1,5 +1,7 @@
#!/bin/sh
MOUNT_POINT="/cocos"
# IFACES are all network interfaces excluding lo (LOOPBACK) and sit interfaces
IFACES=$(ip link show | grep -vE 'LOOPBACK|sit*' | awk -F': ' '{print $2}')
@@ -15,3 +17,9 @@ for IFACE in $IFACES; do
dhclient $IFACE
fi
done
if [ ! -d "$MOUNT_POINT" ]; then
mkdir -p $MOUNT_POINT
fi
mount -t ramfs ramfs $MOUNT_POINT
+2 -2
View File
@@ -11,8 +11,8 @@ StandardError=file:/var/log/cocos/agent.stderr
Environment=AGENT_GRPC_PORT=7002
Environment=AGENT_LOG_LEVEL=info
ExecStartPre=/cocos/cocos_network_setup.sh
ExecStart=/cocos/agent_start_script.sh
ExecStartPre=/cocos_init/agent_setup.sh
ExecStart=/cocos_init/agent_start_script.sh
[Install]
WantedBy=default.target