- Download Fedora 26 iso, create a usb bootable media
- Use
diskutil list
to figure out which drive is the usb, on macbook pro with 1 hardrive, the usb is/dev/disk2
- Umount the disk using
diskutil unmountDisk /dev/disk2
or use Mac's Disk Utility (just umount, don't eject, umount removes it from directory structure and eject disconncet it altogether) - Use
dd
(a low levelcp
) to write iso content into the usb drive,sudo dd if=~/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso of=/dev/rdisk2 bs=8m
, this will take a bit of time, make sure you wait until it's done, additionally compare the size or checksum to make sure all has been copied (not that necessary since if it weren't copied, it'll err at boot time) - Use Disk Utility to shrink Mac's harddrive to create partition for the subsequent fedora installation
- Boot to recovery mode (cmd+r) and disable SIP (termina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Promocode controller/generate endpoint controller | |
def generate | |
if not @promocode.is_valid? | |
#An array of errors | |
render json: @promocode.errors | |
end | |
if @promocode.save | |
blah |