mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
'added partitiontable cleaning in autoformat'
This commit is contained in:
parent
8e6e68ce04
commit
c4733d2112
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue