#!/bin/bash

Xdialog --infobox "configuring the System \n Please Wait !" 10 50 50000 & 
for i in dev sys proc tmp;do
  mount -o bind /$i /mnt/target/$i
  echo "mounting $i"
done

#DISPLAY=

chroot /mnt/target config-stage1 vector-virgin 2>/dev/null

#echo "hit enter to reboot when you are finished"
#read garbage
Xdialog --yesno "configuration is done \n Would you like to reboot now?" 10 50
if [ $? = 0 ];then
	reboot
fi

