Skip to content

Instantly share code, notes, and snippets.

@dmuiX
Created December 4, 2022 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmuiX/d8ea8bbc275bd3158690e6483e13c611 to your computer and use it in GitHub Desktop.
Save dmuiX/d8ea8bbc275bd3158690e6483e13c611 to your computer and use it in GitHub Desktop.
# ----------------------------
# Clean up
# revert /etc/resolv.conf_bak
rm /mnt/raspbian/etc/resolv.conf
mv /mnt/raspbian/etc/resolv.conf_bak /etc/resolv.conf
# revert ld.so.preload fix
sed -i 's/^#CHROOT //g' /mnt/raspbian/etc/ld.so.preload
# unmount everything
umount /mnt/raspbian/{dev/pts,dev,sys,proc,boot,}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment