From owner-freebsd-stable@FreeBSD.ORG Wed Sep 29 14:50:18 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEF4B106566B for ; Wed, 29 Sep 2010 14:50:18 +0000 (UTC) (envelope-from morgan.s.reed@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4B2E08FC17 for ; Wed, 29 Sep 2010 14:50:17 +0000 (UTC) Received: by wwb17 with SMTP id 17so1103954wwb.31 for ; Wed, 29 Sep 2010 07:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=f5V2jMlBDxxwrg6YIBCDxXvpN0qNRgSP1B2kLtA574E=; b=KlferynZkq63C5mzgyxZOuv7t7SUnT1a62YMocOEIFguOvlViK0Xtm1xaQb89gCmqX s2a3QZ6nUYMPImGf10fQoe0+CbT1l68ZDdZZD0iwke9eItTM3EpYZbKDYQrdhMVnaCk8 MyXFlvGiDHpTw9/tAQNnO5IyrIDl75eEE8Xac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=mMm6cHX/tjolsEwlG+Hc/jm2NbeB1e+T6nz1DnkIOE/rvQbhkvn9GWA/VMisB6JWdz MYiORw+Strd2bJy1wHtQhEzzaQnRC3bO7G4Kf4bxBACHl+sSHDf5AcwSmNtyszCChO7F QQTkVhRFE99k84uooYsTEmevlE1jut/JD/WuU= Received: by 10.216.5.21 with SMTP id 21mr2596369wek.20.1285770307479; Wed, 29 Sep 2010 07:25:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.2.138 with HTTP; Wed, 29 Sep 2010 07:24:47 -0700 (PDT) From: Morgan Reed Date: Thu, 30 Sep 2010 00:24:47 +1000 Message-ID: To: stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Diskless/readonly root booting issues X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 14:50:18 -0000 Hi all, I've been working on updating my semi-embedded images to 7.3-stable of late (I generally wait for .3+ releases), it's been a few years since the last time I did one of these and I'm having some issues getting my netboot test environment to behave itself. I'm sure it's something simple but I've spent quite a bit of time looking for answers and poking the system but no joy yet. Basically I use a PXE booted NFS root to test my reduced footprint image builds, the boot is working but init is attempting to remount / rw (in spite of it being marked ro in fstab) which of course fails because the directory is exported ro from the NFS server at which point the system dumps me to single user mode; === OUTPUT === Starting file system checks: udp: Netconfig database not found Mounting root filesystem rw failed, startup aborted ERROR: ABORTING BOOT (sending SIGTERM to parent)! Sep 30 09:60:02 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: ============ Relevant configs from the diskless root == rc.conf == ifconfig_le0="DHCP" diskless_mount=/etc/rc.initdiskless varsize=8192 varmfs="YES" tmpsize=8192 tmpmfs="YES" nfs_client_enable="YES" dumpdev="NO" ========= rc.initdiskless is the version from /usr/share/examples/rc.initdiskless == fstab == 192.168.2.2:/usr/fbtest / nfs ro 0 0 proc /proc procfs rw 0 0 ======== == loader.conf == verbose_loading="YES" autoboot_delay="2" ============ Kernel is (obviously) built with NFS_ROOT and NFSCLIENT, relatively minimalist otherwise, have also tested with GENERIC, same result. I must be forgetting something simple in all of this, I don't recall it being terribly difficult to get this stuff working when I was doing my original work with 6.3, though I don't recall the use of the initdiskless script, IIRC I was using rc.diskless2 which (again IIRC) was later replaced by /etc/rc.d/diskless but I've not been able to find this script anywhere. Any suggestions would be greatly appreciated at this point. Thanks, Morgan Reed