Skip to content

Instantly share code, notes, and snippets.

View soplwang's full-sized avatar

Wang Wenlin soplwang

View GitHub Profile
@soplwang
soplwang / fedora_to_usb.sh
Created July 10, 2024 17:29 — forked from rokiden/fedora_to_usb.sh
Script for converting Fedora LiveCD to LiveUSB with persistence
#!/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