installer: Save the installation log as the last step.
authorSascha Wildner <saw@online.de>
Thu, 9 Oct 2014 06:34:57 +0000 (08:34 +0200)
committerSascha Wildner <saw@online.de>
Thu, 9 Oct 2014 06:34:57 +0000 (08:34 +0200)
usr.sbin/installer/dfuibe_installer/fn_install.c

index 74a6d06..6f9eead 100644 (file)
@@ -644,12 +644,6 @@ fn_install_os(struct i_fn_args *a)
                            a->os_root, cmd_name(a, "CHFLAGS"),
                            a->os_root, pfs_mountpt[j]);
 
-       command_add(cmds, "%s%s %sinstall.log %smnt/var/log/install.log",
-           a->os_root, cmd_name(a, "CP"),
-           a->tmp, a->os_root);
-       command_add(cmds, "%s%s 600 %smnt/var/log/install.log",
-           a->os_root, cmd_name(a, "CHMOD"), a->os_root);
-
        /* Do some preparation if encrypted partitions were configured */
        if (needcrypt) {
                command_add(cmds,
@@ -683,6 +677,13 @@ fn_install_os(struct i_fn_args *a)
                    a->os_root);
        }
 
+       /* Save the installation log. */
+       command_add(cmds, "%s%s %sinstall.log %smnt/var/log/install.log",
+           a->os_root, cmd_name(a, "CP"),
+           a->tmp, a->os_root);
+       command_add(cmds, "%s%s 600 %smnt/var/log/install.log",
+           a->os_root, cmd_name(a, "CHMOD"), a->os_root);
+
        /*
         * Do it!
         */