From owner-freebsd-current@FreeBSD.ORG Thu Sep 1 06:45:17 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4DDB1065670 for ; Thu, 1 Sep 2011 06:45:17 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 628EF8FC15 for ; Thu, 1 Sep 2011 06:45:17 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.44]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p816j63K041921 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 1 Sep 2011 16:15:11 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 1 Sep 2011 16:15:06 +0930 To: freebsd-current Current Message-Id: Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -4.391 () ALL_TRUSTED,BAYES_00,RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Subject: Custom installer woes (can't mount / RW) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2011 06:45:18 -0000 Hi, I'm trying to create a custom installer for FreeBSD to automatically = setup our systems, however I am having a very odd problem. The general idea is that I build a release, then create a chroot in = which I install the slab of required ports for our system. I then tar = that up and format a USB key (the same way it's done for a release) with = the tar on it. I then boot the USB key and go to the live FS and run my install script. = It creates the file systems, unpacks the base distribution and my ports = tar ball. Then I tweak various settings and reboot. The problem I am having is that when I boot into the newly installed = system I can't mount / RW, when I try it reports "Operation not = permitted". My script is at.. http://www.gsoft.com.au/~doconnor/install-os.sh The odd thing (to me) is that I used the same gpart/newfs sequence when = creating the USB stick and that can mount root RW just fine.. I tried booting verbose but there is no information forthcoming. I am running SU+J however I tried disabling both on / and rebooting, but = with no change. The other partitions can be mounted RW just fine, and if I boot off = other media I can mount what is / just fine as well. If I install using bsdinstaller it works, so I have a work around, but I = would like to use my custom script as it saves a lot of time and finger = trouble. Any help appreciated. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C