From owner-svn-src-head@freebsd.org Thu May 12 07:38:11 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFB44B38D9B; Thu, 12 May 2016 07:38:11 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7BC2A175E; Thu, 12 May 2016 07:38:11 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4C7cA3l008348; Thu, 12 May 2016 07:38:10 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4C7cAYe008347; Thu, 12 May 2016 07:38:10 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201605120738.u4C7cAYe008347@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Thu, 12 May 2016 07:38:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299523 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2016 07:38:11 -0000 Author: trasz Date: Thu May 12 07:38:10 2016 New Revision: 299523 URL: https://svnweb.freebsd.org/changeset/base/299523 Log: Stop hiding errors that result in failure to mount /dev. Otherwise, missing /dev directory makes one end up with a completely deaf (init without stdout/stderr) system with no hints on the console, unless you've booted up with bootverbose. MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/vfs_mountroot.c Modified: head/sys/kern/vfs_mountroot.c ============================================================================== --- head/sys/kern/vfs_mountroot.c Thu May 12 06:55:42 2016 (r299522) +++ head/sys/kern/vfs_mountroot.c Thu May 12 07:38:10 2016 (r299523) @@ -347,9 +347,9 @@ vfs_mountroot_shuffle(struct thread *td, } NDFREE(&nd, NDF_ONLY_PNBUF); - if (error && bootverbose) + if (error) printf("mountroot: unable to remount previous root " - "under /.mount or /mnt (error %d).\n", error); + "under /.mount or /mnt (error %d)\n", error); } /* Remount devfs under /dev */ @@ -373,9 +373,9 @@ vfs_mountroot_shuffle(struct thread *td, } else vput(vp); } - if (error && bootverbose) + if (error) printf("mountroot: unable to remount devfs under /dev " - "(error %d).\n", error); + "(error %d)\n", error); NDFREE(&nd, NDF_ONLY_PNBUF); if (mporoot == mpdevfs) { @@ -383,7 +383,7 @@ vfs_mountroot_shuffle(struct thread *td, /* Unlink the no longer needed /dev/dev -> / symlink */ error = kern_unlinkat(td, AT_FDCWD, "/dev/dev", UIO_SYSSPACE, 0); - if (error && bootverbose) + if (error) printf("mountroot: unable to unlink /dev/dev " "(error %d)\n", error); }