summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2018-11-09 08:37:40 +0100
committerGitHub <noreply@github.com>2018-11-09 08:37:40 +0100
commita269e78c8a8f411c7ac6090a2b446164fd29580c (patch)
treef40b9f42cf5d181da3e913c05575375223eafe97 /scripts
parentad559f4eef05670b590bbc7f69baccbc76cad7f7 (diff)
downloadvyatta-cfg-system-a269e78c8a8f411c7ac6090a2b446164fd29580c.tar.gz
vyatta-cfg-system-a269e78c8a8f411c7ac6090a2b446164fd29580c.zip
Cleanup output (#85)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install/install-postinst-new8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new
index ee81dd58..0ed6441d 100755
--- a/scripts/install/install-postinst-new
+++ b/scripts/install/install-postinst-new
@@ -127,9 +127,9 @@ install_grub () {
if [ -f "/tmp/efiparts.tmp" ]; then
# Remove grub-pc packages
- dpkg -r grub-pc grub2
+ dpkg -r grub-pc grub2 >&/dev/null
# Install grub-efi packages
- dpkg -i /usr/share/vyos/packages/grub-efi*.deb
+ dpkg -i /usr/share/vyos/packages/grub-efi*.deb >&/dev/null
EFI_PARTITION=1
mkdir -p $grub_root/boot/efi
readarray parts < /tmp/efiparts.tmp
@@ -143,9 +143,9 @@ install_grub () {
bootloader_name="VyOS (RAID disk $I)"
((I++))
fi
- mkdosfs -F 32 -n EFI /dev/$part
+ mkdosfs -F 32 -n EFI /dev/$part >&/dev/null
mount /dev/$part $grub_root/boot/efi
- output=$(grub-install --no-floppy --recheck --target=x86_64-efi --root-directory=$grub_root --efi-directory=$grub_root/boot/efi --bootloader-id="$bootloader_name")
+ output=$(grub-install --no-floppy --recheck --target=x86_64-efi --root-directory=$grub_root --efi-directory=$grub_root/boot/efi --bootloader-id="$bootloader_name" 2>&1)
umount $grub_root/boot/efi
##TODO DO we need these to be in fstab??
#