Hide stdout of commands

This commit is contained in:
Santiago Lo Coco 2021-12-22 16:23:03 -03:00
parent 5409b7ad3c
commit 0d4e3101d8
1 changed files with 11 additions and 11 deletions

View File

@ -48,24 +48,24 @@ partDisks() {
autoPart() {
# Create new GPT disklabel
parted $disk mklabel gpt
yes | parted $disk mklabel gpt
sgdisk $disk -n=1:0:+300M -t=1:ef00
sgdisk $disk -n=2:0:+1024M -t=2:8200
sgdisk $disk -n=3:0:0
sgdisk $disk -n=1:0:+300M -t=1:ef00 > /dev/null
sgdisk $disk -n=2:0:+1024M -t=2:8200 > /dev/null
sgdisk $disk -n=3:0:0 > /dev/null
}
formatPart() {
mkfs.fat -F 32 "$bootPart"
mkswap "$swapPart"
mkfs.ext4 "$rootPart"
mkfs.fat -F 32 "$bootPart" > /dev/null
mkswap "$swapPart" > /dev/null
mkfs.ext4 "$rootPart" > /dev/null
}
mountPart() {
mount "$rootPart" /mnt
mkdir -p /mnt/boot/efi
mount "$bootPart" /mnt/boot/efi
swapon "$swapPart"
mount "$rootPart" /mnt > /dev/null
mkdir -p /mnt/boot/efi
mount "$bootPart" /mnt/boot/efi > /dev/null
swapon "$swapPart" > /dev/null
}
installPackages() {