Skip to content

Commit

Permalink
Add M1 Mac support separately
Browse files Browse the repository at this point in the history
Signed-off-by: Tarun Pothulapati <[email protected]>
  • Loading branch information
Pothulapati committed Jun 7, 2022
1 parent 1d66f8d commit 64a05b0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ DOMAIN="${DOMAIN_STRING}.nip.io"

echo "Gitpod Domain: $DOMAIN"

# M1 and cgroupsv2 stuff
if ! grep -iq 'cpu.*hz' /proc/cpuinfo; then
cpuinfo_file=/etc/cpuinfo_with_fake_speed
cp /proc/cpuinfo $cpuinfo_file
echo "CPU MHz: 2345.678" >> $cpuinfo_file
mount --bind $cpuinfo_file /proc/cpuinfo
fi

if [ -f /sys/fs/cgroup/cgroup.controllers ]; then
echo "[$(date -Iseconds)] [CgroupV2 Fix] Evacuating Root Cgroup ..."
# move the processes from the root group to the /init group,
Expand Down

0 comments on commit 64a05b0

Please sign in to comment.