Skip to content

Commit

Permalink
[baseimage]: Remove old ping permission fix because of aufs->overlay …
Browse files Browse the repository at this point in the history
…filesystem (#3154)

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
  • Loading branch information
qiluo-msft authored and lguohan committed Jul 13, 2019
1 parent 16e8571 commit 6a99dd8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,6 @@ sudo sed -i 's/LOAD_KEXEC=true/LOAD_KEXEC=false/' $FILESYSTEM_ROOT/etc/default/k
## jump when time difference is greater than 1000 seconds (remove -g).
sudo sed -i "s/NTPD_OPTS='-g'/NTPD_OPTS='-x'/" $FILESYSTEM_ROOT/etc/default/ntp

## Fix ping tools permission so non root user can directly use them
## Note: this is a workaround since aufs doesn't support extended attributes
## Ref: https://github.com/moby/moby/issues/5650#issuecomment-303499489
## TODO: remove workaround when the overlay filesystem support extended attributes
sudo chmod u+s $FILESYSTEM_ROOT/bin/ping{,6}

## Remove sshd host keys, and will regenerate on first sshd start
sudo rm -f $FILESYSTEM_ROOT/etc/ssh/ssh_host_*_key*
sudo cp files/sshd/host-ssh-keygen.sh $FILESYSTEM_ROOT/usr/local/bin/
Expand Down

0 comments on commit 6a99dd8

Please sign in to comment.