Skip to content

Instantly share code, notes, and snippets.

View phil-gg's full-sized avatar

Philip Antrobus phil-gg

  • Brisbane, Queensland, Australia
  • 02:17 (UTC +10:00)
View GitHub Profile
@luavixen
luavixen / chroot-create.sh
Last active September 29, 2025 04:50
Create a new Debian `chroot` environment in Alpine Linux
#!/bin/sh
if [[ $(id -u) -eq 0 ]]; then
echo "This script cannot be run as root, root access will be requested through \`sudo\`"
exit 1
fi
user="$USER"
group="$user"