Skip to content

Instantly share code, notes, and snippets.

@KsaRedFx
KsaRedFx / install-live.sh
Last active October 29, 2022 19:38
Install Ubuntu with debootstrap and chroot, without rebooting the host machine or using a iso
#!/bin/bash
echo "--------------------------------------------------------------------------------------"
echo "This script builds a full operating system with debootstrap and chroot"
echo "To use this script, please mount an empty partition or alternate disk"
echo ""
echo "If you are using btrfs, and using subvolumes, mount the root subvolume explicity"
echo "Example: mount /dev/sdb1 /media/bootstrap -o subvol=@"
echo "Failure to do this will cause the script to break. It needs the root directory"
echo ""
echo "The script is specifically built for Ubuntu"