Problems creating a Live USB for OS X from Linux Fedora 25
thanks to klanomath, i realized that there was a much simpler way to fix this issue. it basically consists of: pressing alt command r in boot, to enter internet recovery. please notice that this will only work in macintosh computers released after 2010-2011. after doing so, the computer will connect to the internet and you will be able to download the stock version of your os from the cloud. after doing so, install it, then boot into the os. if it is like a really old version, you can boot into recovery mode (now installed). and download the latest version. if this procedure doesn't work, you can also download the latest version of macosx, and using createinstallmedia command in installation media, and install the latest version of osx