'added partitiontable cleaning in autoformat'

This commit is contained in:
Tobias Powalowski 2009-01-04 15:21:22 +01:00
parent 8e6e68ce04
commit c4733d2112
2 changed files with 5 additions and 1 deletions

View file

@ -548,6 +548,8 @@ autoprepare() {
# invoke sfdisk
printk off
DIALOG --infobox "Partitioning $DEVICE" 0 0
# clean partitiontable to avoid issues!
dd if=/dev/zero of=$DEVICE bs=512 count=1
sfdisk $DEVICE -uM >$LOG 2>&1 <<EOF
$sfdisk_input
EOF

View file

@ -72,10 +72,12 @@ doconsolefont() {
setfont $BASEDIR/consolefonts/$font -C /dev/tty${i}
fi
done
[ -e /dev/ttys0 ] && setfont $BASEDIR/consolefonts/$font -C /dev/ttyS0
if [ $? -gt 0 ]; then
error_consoleset
fi
if [ -e /dev/ttyS0 ]; then
setfont $BASEDIR/consolefonts/$font -C /dev/ttyS0 || error_consoleset
fi
fi
S_NEXTITEM=3
}