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
|
# invoke sfdisk
|
||||||
printk off
|
printk off
|
||||||
DIALOG --infobox "Partitioning $DEVICE" 0 0
|
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 $DEVICE -uM >$LOG 2>&1 <<EOF
|
||||||
$sfdisk_input
|
$sfdisk_input
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -72,10 +72,12 @@ doconsolefont() {
|
||||||
setfont $BASEDIR/consolefonts/$font -C /dev/tty${i}
|
setfont $BASEDIR/consolefonts/$font -C /dev/tty${i}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
[ -e /dev/ttys0 ] && setfont $BASEDIR/consolefonts/$font -C /dev/ttyS0
|
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
error_consoleset
|
error_consoleset
|
||||||
fi
|
fi
|
||||||
|
if [ -e /dev/ttyS0 ]; then
|
||||||
|
setfont $BASEDIR/consolefonts/$font -C /dev/ttyS0 || error_consoleset
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
S_NEXTITEM=3
|
S_NEXTITEM=3
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue