Do not write two lines for swap to /etc/fstab.
authorSascha Wildner <saw@online.de>
Sat, 10 Jan 2009 18:25:54 +0000 (18:25 +0000)
committerSascha Wildner <saw@online.de>
Sat, 10 Jan 2009 18:26:41 +0000 (18:26 +0000)
Reported-by: Konstantinos Pachnis <kpachnis@freemail.gr>
contrib/bsdinstaller-1.1.6/src/backend/installer/fn_install.c

index 2e7827f..62dfe43 100644 (file)
@@ -513,8 +513,7 @@ fn_install_os(struct i_fn_args *a)
                            a->os_root, cmd_name(a, "ECHO"),
                            subpartition_get_device_name(sp),
                            a->os_root);
-               }
-               if (use_hammer == 0) {
+               } else if (use_hammer == 0) {
                        if (strcmp(subpartition_get_mountpoint(sp), "/") == 0) {
                                command_add(cmds, "%s%s '/dev/%s\t\t%s\t\tufs\trw\t\t1\t1' >>%smnt/etc/fstab",
                                    a->os_root, cmd_name(a, "ECHO"),