installer: Quietly drop error messages from umount commands at the end.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Dec 2010 19:08:32 +0000 (20:08 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Dec 2010 19:08:32 +0000 (20:08 +0100)
Sometimes, they say that their mountpoint was already umounted
and so the user won't be annoyed.

src/install+setup/install/main.c

index d18f16b..e501e1b 100644 (file)
@@ -605,13 +605,13 @@ EXIT:
 
        newtFinished();
 
-       system("/bin/umount /harddisk/proc");
-       system("/bin/umount /harddisk/dev");
-       system("/bin/umount /harddisk/sys");
+       system("/bin/umount /harddisk/proc >/dev/null 2>&1");
+       system("/bin/umount /harddisk/dev >/dev/null 2>&1");
+       system("/bin/umount /harddisk/sys >/dev/null 2>&1");
 
-       system("/bin/umount /harddisk/var");
-       system("/bin/umount /harddisk/boot");
-       system("/bin/umount /harddisk");
+       system("/bin/umount /harddisk/var >/dev/null 2>&1");
+       system("/bin/umount /harddisk/boot >/dev/null 2>&1");
+       system("/bin/umount /harddisk >/dev/null 2>&1");
 
        if (!(allok))
                system("/etc/halt");