chroot "$@" apt-get --yes --auto-remove purge
chroot "$@" apt-get --yes --auto-remove upgrade
chroot "$@" rpi-update || [ -f "$@/boot/bootcode.bin" ]
chroot "$@" apt-get --yes --auto-remove purge
chroot "$@" apt-get --yes --auto-remove upgrade
chroot "$@" rpi-update || [ -f "$@/boot/bootcode.bin" ]