Skip to content

Commit

Permalink
[DELL]: FTOS to SONiC fast conversion fixes (#4807)
Browse files Browse the repository at this point in the history
While migrating to SONiC 20181130, identified a couple of issues:
1. union-mount needs /host/machine.conf parameters for vendor specific checks : however, in case of migration, the /host/machine.conf is extracted from ONIE only in https://github.com/Azure/sonic-buildimage/blob/master/files/image_config/platform/rc.local#L127.
2. Since grub.cfg is updated to have net.ifnames=0 biosdevname=0, 70-persistent-net.rules changes are no longer required.
  • Loading branch information
padmanarayana authored and yxieca committed Jun 19, 2020
1 parent d9b8bed commit 062fd84
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions files/image_config/platform/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ update_mgmt_interface_macaddr() {

log_migration "eth0 mac in EEPROM after update:"
ethtool -e eth0 offset $ethtool_offset length 6 >> /host/migration/migration.log

# Update the 70-persistent-net.rules with the new mac for eth0
log_migration "/etc/udev/rules.d/70-persistent-net.rules : replacing $old_mac with $new_mac for eth0"
sed -i "/eth0/ s/ATTR{address}==\"$old_mac\"/ATTR{address}==\"$new_mac\"/g" /etc/udev/rules.d/70-persistent-net.rules
}

firsttime_exit() {
Expand Down

0 comments on commit 062fd84

Please sign in to comment.