Skip to content

Instantly share code, notes, and snippets.

View jumpyvi's full-sized avatar
🦆

JumpyVi jumpyvi

🦆
View GitHub Profile

About

This converts a "classic" distro to any image based OS with ComposeFS support!

Arch was chosen as the base as it's pretty easy to install and comes with systemd-boot pre-configured.

This is NOT what you might know as a "rebase". This is a full in-place re-install, you data and users will be lost.

This is mainly usefull for custom images that don't have ISOs, for exemple Bootcrew or FreeDesktop-based bootc images like ProjectBluefin's Egg.

@jumpyvi
jumpyvi / luks2
Last active January 25, 2026 20:32
sudo umount -R /mnt 2>/dev/null || true
sudo cryptsetup close cryptroot 2>/dev/null || true
sudo wipefs -a /dev/sda
sudo sgdisk -o /dev/sda
sudo sgdisk -n 1:0:+2G -t 1:ef00 -c 1:"BOOT" /dev/sda
sudo sgdisk -n 2:0:0 -t 2:8300 -c 2:"ROOT" /dev/sda
sudo cryptsetup luksFormat --type luks2 /dev/sda2
brew install qemu libvirt && flatpak install org.virt_manager.virt-manager -y
sudo useradd -r -M -s /sbin/nologin libvirt-qemu
sudo groupadd libvirt
sudo usermod -aG libvirt $(whoami)
sudo mkdir -p /var/lib/libvirt/images
sudo mkdir -p /var/run/libvirt
sudo chown -R libvirt-qemu:libvirt /var/lib/libvirt/images
sudo chmod 750 /var/lib/libvirt/images
@jumpyvi
jumpyvi / tpm-unlock.sh
Created November 5, 2024 21:35
TPM-Autounlock (fedora)
#!/bin/bash
## setup auto-unlock LUKS2 encrypted root on Fedora/Silverblue/maybe others
## This is a backup version from Universal Blue
set -eou pipefail
[ "$UID" -eq 0 ] || { echo "This script must be run as root."; exit 1;}
echo "WARNING: Do NOT use this if your CPU is vulnerable to faulTPM!"
echo "All AMD Zen2 and Zen3 Processors are known to be affected!"
echo "All AMD Zen1 processors are also likely affected, with Zen4 unknown!"