[Bug 238165] New: zypper: support installation of packages in optional root directory
https://bugzilla.novell.com/show_bug.cgi?id=238165 Summary: zypper: support installation of packages in optional root directory Product: openSUSE 10.3 Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: Enhancement Priority: P5 - None Component: libzypp AssignedTo: kkaempf@novell.com ReportedBy: ms@novell.com QAContact: kkaempf@novell.com the command: zypper install package(s) will install the package in the current system tree under the root path "/" There is no possibility to specify another root patch under which the packages should be installed. It would be very nice if zypper supports generating a new RPM database plus install of packages under the new root. The reason for this enhancement is the possibility to use zypper to create operating system images. Currently smart is used to do the job but zypper is missing only this feature to serve as an replacement Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 kkaempf@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |visnov@novell.com, ma@novell.com AssignedTo|kkaempf@novell.com |mvidner@novell.com ------- Comment #1 from kkaempf@novell.com 2007-01-25 05:51 MST ------- Yes, I second this request. Adding Michael to CC, he should know the magic libzypp call to change the root. ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #2 from visnov@novell.com 2007-01-25 05:54 MST ------- A feature request? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #3 from ma@novell.com 2007-01-25 08:46 MST ------- (In reply to comment #1)
Adding Michael to CC, he should know the magic libzypp call to change the root. ;-)
void ZYpp::initializeTarget( const Pathname & root ); Zypper calls initTarget("/"), so the root path is "/". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ms@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |visnov@novell.com ------- Comment #4 from ms@novell.com 2007-01-30 06:04 MST ------- Stano do you want me to make a fate entry for this ? Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 visnov@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|visnov@novell.com | ------- Comment #5 from visnov@novell.com 2007-01-30 06:10 MST ------- Would be nice, thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #6 from ms@novell.com 2007-01-30 08:18 MST ------- done Fate: #301963 ... I wasn't able to setup project/product manager Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 mvidner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Partner ID| |FATE 301963 ------- Comment #7 from mvidner@novell.com 2007-02-01 06:34 MST ------- zypper 0.7.0 for 10.3: Added global option --root to operate on a different directory. It also uses repositories from that root though, which is not very practical I think. A little polishing is needed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #8 from ms@novell.com 2007-02-01 06:42 MST ------- great I will test it as soon as I have time for it. Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165
------- Comment #9 from ms@novell.com 2007-02-13 09:01 MST -------
I have tested --root support and unfortunately it doesn't work. Here is
what I did:
zypper --root /tmp/kiwi.L29034 \
service-add --type YaST file:///image/dist/full-10.2-i386 kiwi1-29028
zypper --root /tmp/kiwi.L29034 \
install -y devs filesystem glibc-locale rpm smart zypper
The result is:
--------------
Restoring system sources...
Do you want to trust key id A84EDAE89C800ACA SuSE Package Signing Key
https://bugzilla.novell.com/show_bug.cgi?id=238165 ms@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Enhancement |Normal -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 mvidner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvidner@novell.com AssignedTo|mvidner@novell.com |ma@novell.com Status|ASSIGNED |NEW ------- Comment #10 from mvidner@novell.com 2007-02-19 06:24 MST ------- Reproduced (except using a different URL for the same source. http://dist.suse.de/dist/full-10.2-i386/ ) I believe that it is a bug in libzypp. zypper calls SourceManager::Restore with the proper root parameter (zmart-sources.cc:init_system_sources()) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #11 from ma@novell.com 2007-02-19 06:51 MST ------- Yes, SourceManager is broken. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #12 from ms@novell.com 2007-03-06 08:19 MST ------- any news here ? something I can test ? ;) Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #13 from ma@novell.com 2007-03-06 17:21 MST ------- Patience. SourceManager is to be rewritten. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #14 from ms@novell.com 2007-03-07 03:45 MST ------- Ah, ok sorry don't knew that it is being rewritten -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #15 from ms@novell.com 2007-03-26 02:25 MST ------- Because I will be asked often and often how long it will take to be able to use zypper for image building I would like to ask you if you could give me a rough estimation about this bug to become fixed ? Thanks a lot -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ma@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ms@novell.com ------- Comment #16 from ma@novell.com 2007-04-04 12:45 MST ------- libzypp-3.0.2 should allow restoring sources in presence of a root prefix. Please tell me if this fits your needs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #17 from ms@novell.com 2007-04-05 01:40 MST ------- great ! Thanks I will test it as soon as my sync process is finished -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #18 from ms@novell.com 2007-04-05 01:44 MST ------- .. as soon as the package make it to the machcd2/consistent tree. Could take a day or two -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ms@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ms@novell.com | ------- Comment #19 from ms@novell.com 2007-04-16 05:43 MST ------- I tried to test zypper with the installation source on machcd2/consistent. I found that the service-add routine tries to read the patterns from the meta data and if it can't find the data it asks for retry: Please insert media [File ./suse/setup/descr/apparmor-10.3-27.i586.pat not found on media: file:/image/CDs/full-i386 ] # 1. Retry [y/n]: There is no possibility in zypper to have a switch which allows non interactive actions. In principal no problem but the behavior is different per action. Sometimes you need to say "yes" to proceed sometimes you need to say "no". It's rather difficult to use something like this within an automated process. Right now I have pattern "apparmor-10.3-26.i586.pat" but zypper want apparmor-10.3-27.i586.pat which is because machcd2/consistent is not consistent. Anyway this is not fatal I think I could live with the pattern not being read in but the problem is when to say "y" and when "n" It ends up in an endless loop because the answer in kiwi is by default "yes" which means in that case retry reading the pattern until end of days Would you mind to think about zypper as standalone application usable in scripts or controlled by a GUI... many questions at that level make life very hard .. stop testing now Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ma@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ma@novell.com |jkupec@novell.com ------- Comment #20 from ma@novell.com 2007-04-16 05:53 MST ------- Jano, that's for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ------- Comment #21 from visnov@novell.com 2007-04-16 06:49 MST ------- Marcus, please, open a new bug report for the interactivity problems. Don't hijack this one. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 jkupec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jkupec@novell.com |ma@novell.com ------- Comment #22 from jkupec@novell.com 2007-04-16 07:51 MST ------- Marcus, see man zypper -> GLOBAL OPTIONS -> --non-interactive. If that doesn't fit your needs open a new bug report/fate request. Returning this one back to you, Michael. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165 ma@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #23 from ma@novell.com 2007-04-17 04:11 MST ------- closed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=238165#c32
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=238165
User ast@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=238165#c37
--- Comment #37 from Anja Stock
participants (1)
-
bugzilla_noreply@novell.com