Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst/arch/vax Enable swap during sysinst as...



details:   https://anonhg.NetBSD.org/src/rev/e42150a2fe68
branches:  trunk
changeset: 329533:e42150a2fe68
user:      martin <martin%NetBSD.org@localhost>
date:      Wed May 28 11:16:03 2014 +0000

description:
Enable swap during sysinst as early as possible

diffstat:

 distrib/utils/sysinst/arch/vax/md.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 3d2cf9eb1be6 -r e42150a2fe68 distrib/utils/sysinst/arch/vax/md.c
--- a/distrib/utils/sysinst/arch/vax/md.c       Wed May 28 11:09:18 2014 +0000
+++ b/distrib/utils/sysinst/arch/vax/md.c       Wed May 28 11:16:03 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.40 2014/02/15 19:45:43 tsutsui Exp $  */
+/*     $NetBSD: md.c,v 1.41 2014/05/28 11:16:03 martin Exp $   */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -143,6 +143,9 @@
 int
 md_post_disklabel(void)
 {
+       if (get_ramsize() <= 32)
+               set_swap(diskdev, bsdlabel);
+
        return 0;
 }
 
@@ -179,6 +182,9 @@
 int
 md_pre_update(void)
 {
+       if (get_ramsize() <= 32)
+               set_swap(diskdev, NULL);
+
        return 1;
 }
 



Home | Main Index | Thread Index | Old Index