Skip to content

Commit a72bf8c

Browse files
authored
Fix logging error messages when starting infrap4d in container (#152)
1 parent 4d49c78 commit a72bf8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

p4sdk/images/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ mkdir -p /usr/share/target_sys/
5757
cp /opt/p4/p4sde/share/target_sys/zlog-cfg /usr/share/target_sys/zlog-cfg
5858
mkdir -p /usr/share/stratum/es2k/
5959
cp /opt/p4/p4-cp-nws/share/stratum/es2k/es2k_port_config.pb.txt /usr/share/stratum/es2k/es2k_port_config.pb.txt
60+
# Create logging directory used by infrap4d
61+
mkdir -p /var/log/stratum
62+
touch /dev/mem
6063

6164
# Start Infrap4d
6265
func_set_br_pipe &

0 commit comments

Comments
 (0)