]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/installer/hw.c
Merge branch 'glibc-2.28' into next
[ipfire-2.x.git] / src / installer / hw.c
index c9b95017d3ced051a52043ac6e83551a9348821a..b329db545b843729f609214f7d53afbf37257dbe 100644 (file)
@@ -146,14 +146,7 @@ int hw_mount(const char* source, const char* target, const char* fs, int flags)
                }
        }
 
-       int r = mount(source, target, fs, flags, NULL);
-
-       if (r) {
-               fprintf(stderr, "Error mounting %s to %s (fs = %s, flags = %d): %s\n",
-                               source, target, fs, flags, strerror(r));
-       }
-
-       return r;
+       return mount(source, target, fs, flags, NULL);
 }
 
 int hw_umount(const char* target) {
@@ -713,7 +706,6 @@ int hw_create_partitions(struct hw_destination* dest, const char* output) {
                if (*dest->part_bootldr) {
                        asprintf(&cmd, "%s set %d bios_grub on", cmd, dest->part_boot_idx);
                }
-               asprintf(&cmd, "%s disk_set pmbr_boot on", cmd);
        }
 
        r = mysystem(output, cmd);