-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-ID: <[EMAIL PROTECTED]>


The Wednesday 2008-01-16 at 09:53 -0200, Leonardo Chiquitto wrote:

Carlos E. R. wrote:

I wonder if it is possible to update a partition containing factory (10.3
beta, actually) while the running system (different system version)
resides in another partition.


 It is possible with a simple chroot(1). I run SLED10-SP1 daily, but have
a separated partition with openSUSE-Factory, for development purposes.
 Assuming that the openSUSE installation is on /dev/sda2, you can use
the following script (you'll probably have to tweak it to fit your environment):


#!/bin/bash

if ! grep -q /dev/sda2 /proc/mounts; then
       mount /dev/sda2 /opensuse
fi
for part in proc sys dev; do
       if ! grep -q /opensuse/$part /proc/mounts; then
               mount --bind /$part /opensuse/$part
       fi
done

cp -f /etc/resolv.conf /opensuse/etc/resolv.conf
chroot /opensuse

Here I assume I would insert the update procedure.


umount /opensuse/proc
umount /opensuse/sys
umount /opensuse/dev
umount /opensuse


I still have not tested this procedure on my factory partition, but I used it as part of the recovery procedure of an old system, sucessfully, so I must say thank you :-)


- -- Cheers,
       Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHmzJbtTMYHG2NR9URApReAJ4kuiml9imzsGvp3rIrzeEXG7vdkACgh6Dz
EJFliIllxYT5MmxQMGZwplE=
=Tb4K
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to