Create bootable macOS Sierra USB.
(Reminder to replace with the name of the USB drive you're using)
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction