Skip to content

Instantly share code, notes, and snippets.

@jonas-schievink
jonas-schievink / ramfs-chroot
Created November 15, 2018 17:57
chroot into an initramfs with a single command
#!/bin/bash
set -e
if [[ $# -ne 1 ]]; then
echo "usage: ramfs-chroot <ramfs_image>"
exit 1
fi
RAMFS=$1