From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dns.possio.com ([62.95.65.150] helo=master.possio.com) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 17KywY-0007hk-00 for ; Thu, 20 Jun 2002 11:13:34 +0100 Received: from [62.95.65.76] by master.possio.com (NTMail 7.00.0018/NT0065.00.5d386785) with ESMTP id mfuiaaaa for linux-mtd@lists.infradead.org; Thu, 20 Jun 2002 12:12:43 +0200 Message-ID: <3D11AAC9.11F76543@possio.com> Date: Thu, 20 Jun 2002 12:13:29 +0200 From: Stefan Thomasson MIME-Version: 1.0 To: Russ Dill CC: Christopher Fowler ," =?iso-8859-1?Q?J=F6rn?= Engel" ,Chris AtLee ,Linux MTD Subject: Re: Updating the root partition References: <1024499892.9366.31.camel@geb> <20020620002303.A21586@wohnheim.fh-wedel.de> <1024526655.441.5.camel@timmy> <1024528965.13219.12.camel@devel> <1024529392.1205.9.camel@timmy> <1024531003.13219.15.camel@devel> <1024537429.1088.17.camel@timmy> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: Hi, I'm trying to this whith a jffs2 partition and have some questions regarding this. Russ Dill wrote: > > > The ftpd daemon then sends a HUP signal to init Doesn't init only reread the inittab on a HUP? > > because inittab contains the line: ::restart:/linuxex, init kills all > running processes and exec's /linuxex Its not like going to runlevel 1, is it? restart, is this a special function in BB init? Could not find any info on this one, is it like a reboot? Or does it get executed everytime I starts? > > linuxex now runs, and is the only running process on the system, linuxex > is a shell script: > > /bin/umount /tmp > /bin/umount /etc > /bin/umount /proc > /bin/cp /usr/sbin/flash /var > /bin/cp -a /dev/nftla /var/out > /bin/cp -a /dev/ttyS0 /var > cd /var > /bin/ln -s flash chroot > /bin/mkdir old > echo pivot root to var... > pivot_root . old > exec ./chroot . ./flash Why are you running chroot symlinked to flash, unless its multi function... > > so now flash is the only program running, and its statiacally linked, so > there are no more references to the cramfs root, and it can be umounted > by flash. flash ten proceeds to flash the image, and reset the machine. > > ------ > > so as you can see, there is no pseudo single user mode required, and the > flash image is received while the system is up and fully operational. As > soon as the image is received and verified, the system basically goes > down for a reboot, during which the new image is flashed. Is this done for every reboot?