>>> On 8/14/2018 at 08:39 AM, John Arwe <[email protected]> wrote: 
> SLES 11 and 12 contained a media.1/build file on each DVD, that
> contained a string like (SLES 12 example)
> SLE-12-SP2-Server-DVD-s390x-Build2192.  We have some code that parses
> that value to figure out which distro, version, service pack, and
> architecture the DVD corresponds to.
> 
> On the SLES 15 DVDs, there is no such file.  media.1/media appears to
> have the corresponding content, i.e.
> 
> /nfs/repo/SLE-15-SP0-pkgs/dvd1 # cat media.1/media
> SUSE - SLE-15-Packages-s390x-Build668.1-Media1.iso
> SLE-15-Packages-s390x-Build668.1-Media1.iso
> 1
> 
> While media.1/media did exist on SLES 12 DVDs, the content was much
> different:
> cat /nfs/repo/SLE-12-SP2/media.1/media
> SUSE
> 20161031195753
> 2
> 
> Before I write code to depend on this, I wanted to make sure that
> media.1/media is the best way to get the information we're after,
> programatically, with SLES 15.  I see no mention of this change on the
> release notes page at
> https://www.suse.com/releasenotes/x86_64/SUSE-SLES/15/

This file is not really an API, so I would hesitate to say this is the "best 
way."  For the same reason I'm not really surprised the change wasn't mentioned 
in the release notes.

> It would not be completely surprising if, along with the os-release
> file, there was a similar "parser friendly" format on the DVDs that I
> have not found yet.

Also on the DVD, starting with SLES15, is /repodata/repomd.xml.  Again, I don't 
believe this to be a _documented_ interface, but it is used by zypper, so I 
wouldn't expect really radical changes to it in the future.  Among various 
other things in there, I see this:
  <tags>
    <repo>obsproduct://build.suse.de/SUSE:SLE-15:GA/SLES/15/DVD/s390x</repo>
  </tags>

You should probably talk to our Partner team about stuff like this.  It's their 
job to make your life easier.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to