diff options
author | wollman <wollman@FreeBSD.org> | 1995-05-12 19:12:44 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-05-12 19:12:44 +0000 |
commit | a0ad6a34d39584cffc7f4f759c9bd29f4f44784a (patch) | |
tree | eaa7433696a4f0560b30ad46dc3fcfe4407b5b94 /usr.sbin/config/mkswapconf.c | |
parent | e7f4268dca67a63ab550ce0bc79e14eee95a7ff4 (diff) | |
download | FreeBSD-src-a0ad6a34d39584cffc7f4f759c9bd29f4f44784a.zip FreeBSD-src-a0ad6a34d39584cffc7f4f759c9bd29f4f44784a.tar.gz |
Don't automatically default dumps to be on a swap device; if the user
wants dumps, he can either configure it explicitly (`dumps on' whatever) or
use the dumpon(8) utility.
Diffstat (limited to 'usr.sbin/config/mkswapconf.c')
-rw-r--r-- | usr.sbin/config/mkswapconf.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/config/mkswapconf.c b/usr.sbin/config/mkswapconf.c index cbb97c7..002d85e 100644 --- a/usr.sbin/config/mkswapconf.c +++ b/usr.sbin/config/mkswapconf.c @@ -97,9 +97,13 @@ do_swap(fl) fprintf(fp, "dev_t\trootdev = makedev(%d, 0x%08x);\t\t/* %s */\n", major(fl->f_rootdev), minor(fl->f_rootdev), devtoname(fl->f_rootdev)); - fprintf(fp, "dev_t\tdumpdev = makedev(%d, 0x%08x);\t\t/* %s */\n", - major(fl->f_dumpdev), minor(fl->f_dumpdev), - devtoname(fl->f_dumpdev)); + if (fl->f_dumpdev != NODEV) { + fprintf(fp, "dev_t\tdumpdev = makedev(%d, 0x%08x);\t\t/* %s */\n", + major(fl->f_dumpdev), minor(fl->f_dumpdev), + devtoname(fl->f_dumpdev)); + } else { + fprintf(fp, "dev_t\tdumpdev = NODEV;\t\t\t/* unconfigured */\n"); + } fprintf(fp, "\n"); fprintf(fp, "struct\tswdevt swdevt[] = {\n"); do { |