summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/NEWS1
-rw-r--r--mdk-stage1/mount.c2
2 files changed, 2 insertions, 1 deletions
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);