Bugzilla – Full Text Bug Listing |
Summary: | init-scripts relurl downloaded multiple times, the last one using wrong base | ||
---|---|---|---|
Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Luiz Angelo Daros de Luca <luizluca> |
Component: | AutoYaST | Assignee: | YaST Team <yast-internal> |
Status: | CONFIRMED --- | QA Contact: | E-mail List <qa-bugs> |
Severity: | Normal | ||
Priority: | P5 - None | CC: | ancor |
Version: | Current | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Other | ||
URL: | https://trello.com/c/bFxxRzR8 | ||
Whiteboard: | |||
Found By: | --- | Services Priority: | |
Business Priority: | Blocker: | --- | |
Marketing QA Status: | --- | IT Deployment: | --- |
Attachments: | y2logs |
Description
Luiz Angelo Daros de Luca
2022-03-08 20:15:18 UTC
(In reply to Luiz Angelo Daros de Luca from comment #0) > <location><![CDATA[relurl://../repo/myscript.txt]]></location> Looking at the attached logs, looks like that line was correctly interpreted by AutoYaST so its format shouldn't be the root of the problem. Having said that, shouldn't it be simply like this? > <location>relurl://../repo/myscript.txt</location> From what I can see in the AutoYaST documentation, the cdata tag is only needed to embed a script (ie. using "source") and not to provide an url (ie. using "location"). (In reply to Ancor Gonzalez Sosa from comment #1) > > From what I can see in the AutoYaST documentation [...] Here, I meant: https://documentation.suse.com/sles/15-SP3/single-html/SLES-autoyast/index.html#init-scripts (In reply to Luiz Angelo Daros de Luca from comment #0) > > The last time it executed, autoyast chomped the autoyast/ form URL, changing > the file location from > http://myrepo.com/suse/opensuse-tumbleweed/repo/myscript.txt to > http://myrepo.com/suse/repo/myscript.txt. My guess is that autoyast is > unconditionally removing the autoyast file, not considering it might not be > explicitly mentioned (I'm using .../autoyast/[default]) No, that's not the cause for the incorrect chopping. The difference is here: https://github.com/yast/yast-autoinstallation/blob/4e8a7f5/src%2Flib%2Fautoinstall%2Fscript.rb#L158 Apparently during first stage (before the system reboots) that condition is being evaluated to false because the value of Yast::AutoinstConfig.scheme is already resolved. But in the second stage that's not the case and the url of the script is computed differently (not to say wrongly). |