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
#!/bin/bash | |
# Script for converting Fedora (and maybe other dracut-based) LiveCD to LiveUSB | |
# with persistence. Only UEFI boot supported. Tested with Fedora 37. | |
# | |
# Usage: | |
# ./fedora_to_usb.sh path/to/mounted/livecd /dev/sdX | |
# | |
# Result USB partitioning: | |
# GPT, 2 partitions: | |
# - "EFI" (vfat 256MB) for GRUB and kernel |