Fri Jun 20, 2014 10:28 pm
Sat Jun 21, 2014 1:54 am
Sat Jun 21, 2014 2:02 am
Sat Jun 21, 2014 2:29 am
check_exit () {
exit_code="$?"
if [[ $exit_code -ne 0 ]] ; then
$DIALOG --question --title="$TITLE error" --window-icon=error \
--${BUTTON0}="Continue"${BUTTON0NUM} --${BUTTON1}="Exit"${BUTTON1NUM} \
--text="Error detected: $exit_code $error_message
\nSee $error_log for details. Press \"Continue\" to proceed anyway"
if [[ $? -ne 0 ]] ; then
cleanup
exit 1
fi
fi
}
case $ans in
0) gparted ; check_exit ;;
1) xterm -fa monaco -fs 12 -geometry 90x20+0+0 -hold -e cfdisk ;;
2) ;;
3) exit 0 ;;
esac
case $ans in
0) gparted ;;
1) xterm -fa monaco -fs 12 -geometry 90x20+0+0 -hold -e cfdisk ;;
2) ;;
3) exit 0 ;;
esac
Sat Jun 21, 2014 2:46 am
echo $newpass | chroot /target passwd
# change to:
chroot /target /bin/bash -c "echo -e \"$newpass\n$newpass\n\" | passwd root"
echo $newpass | chroot /target passwd "$newname"
# change to:
chroot /target /bin/bash -c "echo -e \"$newpass\n$newpass\n\" | passwd $newname"
Sat Jun 21, 2014 7:39 am
Sat Jun 21, 2014 12:05 pm
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
did you fix the uuid and debug mode problems in your rewrite
Sun Jun 22, 2014 8:02 pm
Mon Jun 23, 2014 1:14 pm