postinstall: ignore output when invoking legacy scripts

output is never consumed.
master
OpenGnSys Support Team 2024-08-08 11:36:46 +02:00 committed by Alejandro Sirgo Rica
parent 9be639ae78
commit 89d711be2a
1 changed files with 12 additions and 6 deletions

View File

@ -99,7 +99,8 @@ def configure_os_custom(disk, partition):
try:
proc = subprocess.run(cmd_configure,
stdout=subprocess.PIPE,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
encoding='utf-8',
shell=True,
check=True)
@ -113,7 +114,8 @@ def windows_register_c_drive(disk, partition):
try:
proc = subprocess.run(cmd_configure,
stdout=subprocess.PIPE,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
encoding='utf-8',
shell=True,
check=True)
@ -126,7 +128,8 @@ def configure_mbr_boot_sector(disk, partition):
try:
proc = subprocess.run(cmd_configure,
stdout=subprocess.PIPE,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
encoding='utf-8',
shell=True,
check=True)
@ -139,7 +142,8 @@ def configure_grub_in_mbr(disk, partition):
try:
proc = subprocess.run(cmd_configure,
stdout=subprocess.PIPE,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
encoding='utf-8',
shell=True,
check=True)
@ -152,7 +156,8 @@ def configure_fstab(disk, partition):
try:
proc = subprocess.run(cmd_configure,
stdout=subprocess.PIPE,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
encoding='utf-8',
shell=True,
check=True)
@ -165,7 +170,8 @@ def install_grub(disk, partition):
try:
proc = subprocess.run(cmd_configure,
stdout=subprocess.PIPE,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
encoding='utf-8',
shell=True,
check=True)