Skip to content

Instantly share code, notes, and snippets.

@frafra
Created July 26, 2025 14:23
Show Gist options
  • Save frafra/f715769661e8855c127f0a2b8f2cd108 to your computer and use it in GitHub Desktop.
Save frafra/f715769661e8855c127f0a2b8f2cd108 to your computer and use it in GitHub Desktop.
Track software changes to Linux root using overlayfs
mkdir -p upper work merged

mount overlay -t overlay -o lowerdir=/,upperdir=upper/,workdir=work/ merged/

mount -t proc /proc merged/proc/
mount --rbind /sys merged/sys/
mount --rbind /dev merged/dev/

chroot merged/

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment