Skip to content

Commit

Permalink
Revert "Address upstream PR Comments (#10)"
Browse files Browse the repository at this point in the history
This reverts commit a7fddb8.
  • Loading branch information
mkbalani committed Jun 20, 2018
1 parent a7fddb8 commit 480bc6b
Show file tree
Hide file tree
Showing 131 changed files with 514 additions and 6,590 deletions.
29 changes: 13 additions & 16 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@
## an ONIE installer image.
##
## USAGE:
## USERNAME=username PASSWORD=password ./build_debian
## ENVIRONMENT:
## ./build_debian USERNAME PASSWORD_ENCRYPTED
## PARAMETERS:
## USERNAME
## The name of the default admin user
## PASSWORD
## The password, expected by chpasswd command
## PASSWORD_ENCRYPTED
## The encrypted password, expected by chpasswd command

## Default user
USERNAME=$1
[ -n "$USERNAME" ] || {
echo "Error: no or empty USERNAME"
echo "Error: no or empty USERNAME argument"
exit 1
}

## Password for the default user
[ -n "$PASSWORD" ] || {
echo "Error: no or empty PASSWORD"
## Password for the default user, customizable by environment variable
## By default it is an empty password
## You may get a crypted password by: perl -e 'print crypt("YourPaSsWoRd", "salt"),"\n"'
PASSWORD_ENCRYPTED=$2
[ -n "$PASSWORD_ENCRYPTED" ] || {
echo "Error: no or empty PASSWORD_ENCRYPTED argument"
exit 1
}

Expand Down Expand Up @@ -174,7 +178,7 @@ sudo cp files/docker/docker.service.conf $_
## Note: user should be in the group with the same name, and also in sudo/docker group
sudo LANG=C chroot $FILESYSTEM_ROOT useradd -G sudo,docker $USERNAME -c "$DEFAULT_USERINFO" -m -s /bin/bash
## Create password for the default user
echo "$USERNAME:$PASSWORD" | sudo LANG=C chroot $FILESYSTEM_ROOT chpasswd
echo $USERNAME:$PASSWORD_ENCRYPTED | sudo LANG=C chroot $FILESYSTEM_ROOT chpasswd -e

## Pre-install hardware drivers
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install \
Expand Down Expand Up @@ -235,12 +239,6 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i target/debs/libwrap0_*.deb || \
## Disable kexec supported reboot which was installed by default
sudo sed -i 's/LOAD_KEXEC=true/LOAD_KEXEC=false/' $FILESYSTEM_ROOT/etc/default/kexec

## 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 Expand Up @@ -303,7 +301,6 @@ set /files/etc/sysctl.conf/net.ipv6.conf.eth0.forwarding 0
set /files/etc/sysctl.conf/net.ipv6.conf.default.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.all.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_dad 0
set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_ra_defrtr 0
Expand Down
Empty file.
Empty file modified device/accton/x86_64-accton_as7212_54x-r0/AS7212-54x/qos.json
100755 → 100644
Empty file.
Empty file.
Empty file modified device/accton/x86_64-accton_as7212_54x-r0/installer.conf
100755 → 100644
Empty file.
Empty file modified device/accton/x86_64-accton_as7212_54x-r0/minigraph.xml
100755 → 100644
Empty file.
Empty file modified device/accton/x86_64-accton_as7212_54x-r0/plugins/eeprom.py
100755 → 100644
Empty file.
Empty file modified device/accton/x86_64-accton_as7212_54x-r0/plugins/sfputil.py
100755 → 100644
Empty file.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/td2-a7050-qx32-16x40G+32x10G+8x40G.config.bcm
SAI_INIT_CONFIG_FILE=/etc/bcm/td2-a7050-qx32-16x40G+32x10G+8x40G.config.bcm
SAI_NUM_ECMP_MEMBERS=32
Loading

0 comments on commit 480bc6b

Please sign in to comment.