diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 8b32792c3c8..2928878ad90 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -398,6 +398,10 @@ main(int argc, char *argv[]) if (pp != NULL) pp->p_size *= secperblk; } + if (getosreldate() < __FreeBSD_version) { + warnx("%s is newer than the running kernel and may not be compatible", + getprogname()); + } mkfs(pp, special); ufs_disk_close(&disk); if (!jflag)