[opensuse] opensuse chroot install from another os that have zypper installed
Hello. I'm try to build opensuse chroot environment undex another linux
(Exherbo). I'm build zypper and all needed stuff to my system and try to
install patter base.
But when install process begin install filesystem it aborted, becouse i
do not have all dependencies installed. How can i install opensuse in
chroot not using suse OS ?
Thank You.
--
Vasiliy G Tolstov
On Fri, 2010-12-10 at 15:44 +0300, Vasiliy G Tolstov wrote:
Hello. I'm try to build opensuse chroot environment undex another linux (Exherbo). I'm build zypper and all needed stuff to my system and try to install patter base.
But when install process begin install filesystem it aborted, becouse i do not have all dependencies installed. How can i install opensuse in chroot not using suse OS ?
AFAIK, this does not even work from openSUSE. The YaST module that claims to do that does not work (discussed a month or so ago on this list). So, if you find out how to do this, please post it so I can see if I can do the same on openSUSE. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-12-10 at 13:54 +0100, Roger Oberholtzer wrote:
On Fri, 2010-12-10 at 15:44 +0300, Vasiliy G Tolstov wrote:
Hello. I'm try to build opensuse chroot environment undex another linux (Exherbo). I'm build zypper and all needed stuff to my system and try to install patter base.
But when install process begin install filesystem it aborted, becouse i do not have all dependencies installed. How can i install opensuse in chroot not using suse OS ?
AFAIK, this does not even work from openSUSE. The YaST module that claims to do that does not work (discussed a month or so ago on this list). So, if you find out how to do this, please post it so I can see if I can do the same on openSUSE.
Can You provide some more info about it? May be email subject to search
in mail archive?
--
Vasiliy G Tolstov
On Fri, 2010-12-10 at 17:15 +0300, Vasiliy G Tolstov wrote:
On Fri, 2010-12-10 at 13:54 +0100, Roger Oberholtzer wrote:
On Fri, 2010-12-10 at 15:44 +0300, Vasiliy G Tolstov wrote:
Hello. I'm try to build opensuse chroot environment undex another linux (Exherbo). I'm build zypper and all needed stuff to my system and try to install patter base.
But when install process begin install filesystem it aborted, becouse i do not have all dependencies installed. How can i install opensuse in chroot not using suse OS ?
AFAIK, this does not even work from openSUSE. The YaST module that claims to do that does not work (discussed a month or so ago on this list). So, if you find out how to do this, please post it so I can see if I can do the same on openSUSE.
Can You provide some more info about it? May be email subject to search in mail archive?
-- Vasiliy G Tolstov
Selfip.Ru
Date: Oct 25, 2010 Subject: yast install to directory on openSUSE 11.2 and 11.3 -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2010-12-10 at 13:54 +0100, Roger Oberholtzer wrote:
On Fri, 2010-12-10 at 15:44 +0300, Vasiliy G Tolstov wrote:
Hello. I'm try to build opensuse chroot environment undex another linux (Exherbo). I'm build zypper and all needed stuff to my system and try to install patter base.
...
AFAIK, this does not even work from openSUSE. The YaST module that claims to do that does not work (discussed a month or so ago on this list). So, if you find out how to do this, please post it so I can see if I can do the same on openSUSE.
What I have done often is "zypper dup" of one installation chrooted on another. Both opensuse, typically one stable, the duped one factory. I haven't done this yet on the current factory version. - -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEUEARECAAYFAk0CW3wACgkQtTMYHG2NR9VFrwCeKRUnUSes6Gw8u9oQU80OcUjF +xIAmM/1KIFJsuN2GlKL9lDKW+QlN+g= =MKc7 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-12-10 at 17:55 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday, 2010-12-10 at 13:54 +0100, Roger Oberholtzer wrote:
On Fri, 2010-12-10 at 15:44 +0300, Vasiliy G Tolstov wrote:
Hello. I'm try to build opensuse chroot environment undex another linux (Exherbo). I'm build zypper and all needed stuff to my system and try to install patter base.
...
AFAIK, this does not even work from openSUSE. The YaST module that claims to do that does not work (discussed a month or so ago on this list). So, if you find out how to do this, please post it so I can see if I can do the same on openSUSE.
What I have done often is "zypper dup" of one installation chrooted on another. Both opensuse, typically one stable, the duped one factory. I haven't done this yet on the current factory version.
I'm not use suse based distro. In opensuse all work's fine -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-12-10 at 17:55 +0100, Carlos E. R. wrote:
AFAIK, this does not even work from openSUSE. The YaST module that claims to do that does not work (discussed a month or so ago on this list). So, if you find out how to do this, please post it so I can see if I can do the same on openSUSE.
What I have done often is "zypper dup" of one installation chrooted on another. Both opensuse, typically one stable, the duped one factory. I haven't done this yet on the current factory version.
Interesting. How do you do that? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2010-12-13 at 08:07 +0100, Roger Oberholtzer wrote:
On Fri, 2010-12-10 at 17:55 +0100, Carlos E. R. wrote:
What I have done often is "zypper dup" of one installation chrooted on another. Both opensuse, typically one stable, the duped one factory. I haven't done this yet on the current factory version.
Interesting. How do you do that?
Well, the "host" is running a stable opensuse version; I mount the partition running factory, chroot it, and run zypper dup inside. Basically that's it. I did a small script, so that I don't forget the details. This is the version I used for 11.2 factory: (some things are in Spanish; if that's a problem I'll translate, but I think it is only some names) +++························· #!/bin/bash function Mensaje() { echo cat /otros/test_a/etc/SuSE-release echo echo " Copy paste the next line to activate prompt change:" echo echo "export PS1=$'\\[\E[1m\E[31m\\]Tirith_chrooted_on_\\h:\\w # \\[\E(B\E[m\\]'" echo "export PBL_SKIP_BOOT_TEST=1" # http://en.opensuse.org/Libzypp/Failover echo "export ZYPP_ARIA2C=1" echo "cd" echo } function Comprobar() { mount | grep bind | grep "/otros/test_a/" && TEST=TRUE || TEST=FALSE mount | grep "/otros/test_a/boot" || TEST=FALSE grep boot /otros/test_a/etc/mtab || echo "******* mtab mal" } echo "Factory test partition A" echo case "$1" in bind) mount /otros/test_a/ mount /otros/test_a/boot # mtab should have: # /dev/sda9 / reiserfs rw,acl,user_xattr 0 0 # /dev/hda8 /boot ext2 rw,noatime,nodiratime,acl,user_xattr 0 0 mount --bind /proc /otros/test_a/proc mount --bind /sys /otros/test_a/sys mount --bind /dev /otros/test_a/dev #cp -f /etc/resolv.conf /otros/test_a/etc/resolv.conf Mensaje echo jstar /etc/mtab echo o echo cp /etc/mtab.chroot /etc/mtab echo chroot /otros/test_a/ /bin/bash --login ;; 2nd) Mensaje chroot /otros/test_a/ /bin/bash --login ;; test) echo "Mounted?" mount | grep bind ;; out) umount /otros/test_a/proc umount /otros/test_a/sys umount /otros/test_a/dev ;; *) echo "bind | 2nd | out | test" Comprobar echo test $TEST == TRUE && echo "System was mounted previously" || echo "No, system was not (fully) mounted previously" ;; esac ·························++- The problem there is the contents of mtab; I had to edit it manually each time so that the contents were correct, because some install scripts (kernel) do checkings there Now, the version I used for 11.3 factory in my laptop: +++························· #!/bin/bash function Mensaje() { echo cat /other/etc/SuSE-release echo echo " Copy paste the next line to activate prompt change:" echo echo "export PS1=$'\\[\E[1m\E[31m\\]Anor_chrooted_on_\\h:\\w # \\[\E(B\E[m\\]'" echo "export PBL_SKIP_BOOT_TEST=1" # http://en.opensuse.org/Libzypp/Failover echo "export ZYPP_ARIA2C=1" echo "cd" echo } function Comprobar() { mount | grep bind | grep "/other/" && TEST=TRUE || TEST=FALSE # grep boot /other/etc/mtab || echo "******* mtab mal" } echo "Factory test partition" echo case "$1" in bind) mount /other/ # mtab debería tener : # /dev/sda9 / reiserfs rw,acl,user_xattr 0 0 # /dev/hda8 /boot ext2 rw,noatime,nodiratime,acl,user_xattr 0 0 mount --bind /proc /other/proc mount --bind /sys /other/sys mount --bind /dev /other/dev mount --bind /var/run/dbus /other/var/run/dbus #mount --bind /home/_var_fctry_pckgs /other/home/_var_fctry_pckgs mount --bind /home/_var_fctry_pckgs/packages /other/var/cache/zypp/packages #cp -f /etc/resolv.conf /other/etc/resolv.conf Mensaje echo jstar /etc/mtab echo o echo cp /etc/mtab.chroot /etc/mtab echo chroot /other/ /bin/bash --login ;; 2nd) Mensaje chroot /other/ /bin/bash --login ;; test) echo "Mounted? Check for 'binded' /proc /sys and /dev:" mount | grep bind ;; out) umount /other/proc umount /other/sys umount /other/dev umount /other/var/run/dbus umount /other/var/cache/zypp/packages ;; *) echo "bind | 2nd | out | test" Comprobar echo test $TEST == TRUE && echo "System was mounted previously" || echo "No, system was not (fully) mounted previously" ;; esac ·························--- There are two differences: one, that I have to bind mount /var/run/dbus, or zypper doesn't run. The other detail is that, this being a very small partition, I can't afford to download all packages first, but I want to; so I mount bind the location for the download to a directory in the /home of the "host". You can run other things inside the chrooted console, but some fail; notably yast. As I said, I haven't tested 11.4 yet. - -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAk0GMtAACgkQtTMYHG2NR9XtswCeOd1RKoX9bYu5Iuk9d4fOt730 vegAoIM9eEMyqtGH0dG9Acg02tgjpxCU =EsKA -----END PGP SIGNATURE-----
On Mon, 2010-12-13 at 15:50 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Monday, 2010-12-13 at 08:07 +0100, Roger Oberholtzer wrote:
On Fri, 2010-12-10 at 17:55 +0100, Carlos E. R. wrote:
What I have done often is "zypper dup" of one installation chrooted on another. Both opensuse, typically one stable, the duped one factory. I haven't done this yet on the current factory version.
Interesting. How do you do that?
Well, the "host" is running a stable opensuse version; I mount the partition running factory, chroot it, and run zypper dup inside. Basically that's it.
"I mount the partition running factory" covers a lot of ground! I want to have a directory with factory (or some other version of Linux) installed into it. That is what Yast claims to allow, but that I have never gotten to work. Once that directory exists, updates and all should be as you said. I used to have a Gentoo directory on SUSE that I maintained in much this way. It does work very nice. Once you get the directory to start with! BTW, I had a similar script for Gentoo. But not as fancy. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2010-12-13 at 15:49 +0100, Roger Oberholtzer wrote:
On Mon, 2010-12-13 at 15:50 +0100, Carlos E. R. wrote: ...
Well, the "host" is running a stable opensuse version; I mount the partition running factory, chroot it, and run zypper dup inside. Basically that's it.
"I mount the partition running factory" covers a lot of ground! I want to have a directory with factory (or some other version of Linux) installed into it. That is what Yast claims to allow, but that I have never gotten to work. Once that directory exists, updates and all should be as you said. I used to have a Gentoo directory on SUSE that I maintained in much this way. It does work very nice. Once you get the directory to start with!
But my method aim is less "audacious". I said "the directory runnin factory", but that is not exact. I should say "holding", not "running". I mean, factory was installed as it always is: booting the install media con cd or dvd. What I do is simply update it with zypper dup, without running factory, but the stable system installed on another partition. What do I gain? Well, my internet is slow, it takes many hours to download all packages, and I have things to do in the computer during that time. I don't "work" with factory running. So I do that slow phase with the stable system running, and chrooting in a directory the factory partition. Factory is not running, I just run some programs. A zypper dup, mostly. Plus, if there is a crash in that zypper, my computer does not crash. I can hope to recover. - -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAk0GUlYACgkQtTMYHG2NR9ViwwCfeJyRIqYD9q4t1d+Mg1AhJMIv q0oAoIL8hMFrsuePbp/O5YlFstyaX8GS =I8St -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Dec 13, 2010, at 6:05 PM, Carlos E. R. wrote:
But my method aim is less "audacious". I said "the directory runnin factory", but that is not exact. I should say "holding", not "running". I mean, factory was installed as it always is: booting the install media con cd or dvd. What I do is simply update it with zypper dup, without running factory, but the stable system installed on another partition.
What do I gain? Well, my internet is slow, it takes many hours to download all packages, and I have things to do in the computer during that time. I don't "work" with factory running. So I do that slow phase with the stable system running, and chrooting in a directory the factory partition. Factory is not running, I just run some programs. A zypper dup, mostly.
Plus, if there is a crash in that zypper, my computer does not crash. I can hope to recover.
Preaching to the choir. I just want to make that directory via the Yast item that claims to do just that. Then it will live life as a chrooted OS where I can easily compile for various platforms. I think I just need one to get started. A sort of sourdough OS install. I can then copy it and zypper dup when I want to move to a newer release. I will probably just install to a partition, and then copy that to a directory. Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Roger Oberholtzer
-
Vasiliy G Tolstov