is there a good way to automate the process so debian boots up immediately?
I had a script that handled the mounting and the chrooting but the chrooting didnt take until after a login.
I had this run at rc.local
cat startup.sh
#!/bin/ash
/usr/sbin/swapon /dev/mmcblk0p2
/bin/mount --bind /dev /tmp/run/mountd/mmcblk0p1/dev
/bin/mount --bind /proc /tmp/run/mountd/mmcblk0p1/proc
/bin/mount --bind /sys /tmp/run/mountd/mmcblk0p1/sys
/usr/sbin/chroot /tmp/run/mountd/mmcblk0p1 /bin/bash