From bef9859a73a32631c14f336f6a40e079a8ee1948 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 6 Jan 2019 18:36:42 +0000 Subject: Suppress mount error messages when probing for media (mga#24142) Probably caused by the switch to using the standalone mount command, the tail end of a mount error message was left showing in the GUI. --- mdk-stage1/NEWS | 1 + mdk-stage1/mount.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS index cf1cee68e..074673245 100644 --- a/mdk-stage1/NEWS +++ b/mdk-stage1/NEWS @@ -1,3 +1,4 @@ +- suppress mount error messages when probing for media (mga#24142) - better gcc8 workarounds 2.35 diff --git a/mdk-stage1/mount.c b/mdk-stage1/mount.c index 4ff1f5ffa..2920ff77c 100644 --- a/mdk-stage1/mount.c +++ b/mdk-stage1/mount.c @@ -131,7 +131,7 @@ int my_mount(char *dev, char *location, char *fs, int force_rw) #endif char *cmd; - rc = asprintf(&cmd, "mount %s %s -t %s -o %s%s", dev, location, fs, (force_rw ? "" : "ro,"), (opts ? opts : "")); + rc = asprintf(&cmd, "mount %s %s -t %s -o %s%s > /dev/null 2>&1", dev, location, fs, (force_rw ? "" : "ro,"), (opts ? opts : "")); if (rc == -1) { log_perror("asprint allocation failure"); rmdir(location); -- cgit v1.2.1