[opensuse-factory] update another partition possible?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, 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. control running ------> updating (stopped) standard 10.3 factory 11α The idea is to be able to continue doing things elsewhere while the lengthy download takes place. A posibility would be vmware, I guess. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHjeMQtTMYHG2NR9URAnb+AJ42x60H3L+aN3HQo9vrWXvqFVf8NACfTlDJ E3zdt3NpvyT1Xpi4w75mVaE= =FpVL -----END PGP SIGNATURE-----
Hello,
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.
control running ------> updating (stopped)
standard 10.3 factory 11α
The idea is to be able to continue doing things elsewhere while the lengthy download takes place.
A posibility would be vmware, I guess.
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): Regards, Leonardo #!/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 umount /opensuse/proc umount /opensuse/sys umount /opensuse/dev umount /opensuse
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LSU.1.00.0801261412551.16301@nimrodel.valinor> 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: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (2)
-
Carlos E. R.
-
Leonardo Chiquitto