diff options
author | phk <phk@FreeBSD.org> | 1995-05-08 01:34:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-05-08 01:34:31 +0000 |
commit | 6228dff953209276c8daa85b754f9103e8eae81c (patch) | |
tree | b778e85303874559bfd0bf23d91c1fbc6fab5995 /lib | |
parent | f8629aa1a33b98ba8309724421c3db385b2e9f98 (diff) | |
download | FreeBSD-src-6228dff953209276c8daa85b754f9103e8eae81c.zip FreeBSD-src-6228dff953209276c8daa85b754f9103e8eae81c.tar.gz |
Add check for rootfs > cyl 1024.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdisk/rules.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libdisk/rules.c b/lib/libdisk/rules.c index 6bd46a4..2c21eb4 100644 --- a/lib/libdisk/rules.c +++ b/lib/libdisk/rules.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: rules.c,v 1.7 1995/05/05 07:07:45 phk Exp $ + * $Id: rules.c,v 1.8 1995/05/06 03:28:31 phk Exp $ * */ @@ -195,8 +195,12 @@ Rule_004(struct disk *d, struct chunk *c, char *msg) continue; if (c1->subtype == FS_SWAP) j++; - if (c1->flags & CHUNK_IS_ROOT) + if (c1->flags & CHUNK_IS_ROOT) { k++; + if (c1->flags & CHUNK_PAST_1024) + sprintf(msg+strlen(msg), + "Root filesystem extends past cylinder 1024, and cannot be booted from\n"); + } i++; } if (i > 7) { |