From e9a34c1fc1e608c998e67398970b409c1ac7a298 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 8 Aug 2014 19:15:41 +0200 Subject: [PATCH] installer: Remove a more or less arbitrary check of the swap size. Except for boxes which have lots of memory combined with a very very small disk, the installer gives a sane default for swap size by itself and if the user doesn't change it, all will be good. However, if the user did choose to adjust the swap size and if it was to below the main memory size, this check caused it not to be activated and no dumpdev was written to the rc.conf of the installed system. Instead of guessing around how much swap is needed to hold a dump, adding warnings and whatnot, just assume that anyone who tinkers with the offered defaults is intelligent enough to know possible consequences and accept their choice in any case. --- usr.sbin/installer/dfuibe_installer/fn_install.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/usr.sbin/installer/dfuibe_installer/fn_install.c b/usr.sbin/installer/dfuibe_installer/fn_install.c index ea4337c024..74a6d063d7 100644 --- a/usr.sbin/installer/dfuibe_installer/fn_install.c +++ b/usr.sbin/installer/dfuibe_installer/fn_install.c @@ -212,9 +212,6 @@ fn_install_os(struct i_fn_args *a) /* * Set this subpartition as the dump device. */ - if (subpartition_get_capacity(sp) < storage_get_memsize(a->s)) - continue; - command_add(cmds, "%s%s -v /dev/%s", a->os_root, cmd_name(a, "DUMPON"), subpartition_is_encrypted(sp) ? -- 2.41.0