From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 21 12:54:02 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2377616A420 for ; Tue, 21 Feb 2006 12:54:02 +0000 (GMT) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F6F843D46 for ; Tue, 21 Feb 2006 12:54:01 +0000 (GMT) (envelope-from bsam@ipt.ru) Received: from stat.sem.ipt.ru ([192.168.12.1] helo=srv.sem.ipt.ru) by mail.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1FBX1k-000BgL-5u for freebsd-emulation@FreeBSD.org; Tue, 21 Feb 2006 15:54:00 +0300 Received: from bsam by srv.sem.ipt.ru with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FBWzt-000I5w-6F for freebsd-emulation@FreeBSD.org; Tue, 21 Feb 2006 15:52:05 +0300 To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Date: Tue, 21 Feb 2006 15:52:05 +0300 Message-ID: <59887930@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: linprocfs and linux_base port upgrade X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 12:54:02 -0000 Hi! Assume that one has a linux_base port installed and linprocfs is mounted. The task is to upgrade the linux_base port. We do: - Un-mounting linprocfs; - deletting /compat/linux (along /compat/linux/proc); - ... The problem: a short period of time (well, it may be not so short accoring to various curcumstances) exists when there _is no_ /compat/linux/proc directory and linprocfs _is_ defined at /etc/fstab. If something goes wrong when upgrading (system panic, port upgrading errors, etc) one can get an unbootable machine. I think that a linux_base port should: - comment the linprocfs definition right after removing /compat/linux/proc directory; - remove the comment after creating the needed directory. The comment itself should be a readable and unique one (ie all linux_base ports should use the same text). Ex.: "#*linux_base autocomment*". Do you have some other ideas? Thanks. -- Boris B. Samorodov, Research Engineer InPharmTech Co, http://www.ipt.ru Telephone & Internet Service Provider