Skip to content

Loading Registration Codes From an USB Storage (Flash Drive HDD)

Martin Vidner edited this page Mar 5, 2018 · 4 revisions

Registration Codes

To make the registration easier you can store your registration codes on an USB storage like a flash drive. YaST will automatically pre-fill the corresponding input fields. This makes the registration more convenient esp. if you need to register many systems or when testing the installation.

Limitations

Currently the USB drives are scanned only during installation or upgrade. At installed system the scanning is skipped to not interfere with the running system.

File Format

Use either /regcodes.txt or /regcodes.xml on a USB disk. In the file identify the product with the name quoted by zypper search --type product or SUSEConnect --list-extensions (without the /version/architecture part).

regcodes.txt:

SLES    cc36aae1
SLED    309105d4

sle-we  5eedd26a
sle-live-patching 8c541494

regcodes.xml: (xml wins if both xml and txt are present)

<?xml version="1.0"?>
<profile
 xmlns="http://www.suse.com/1.0/yast2ns"
 xmlns:config="http://www.suse.com/1.0/configns">
  <suse_register>
    <!-- See https://www.suse.com/documentation/sles-12/singlehtml/book_autoyast/book_autoyast.html#CreateProfile.Register.Extension -->
    <addons config:type="list">
      <addon>
        <!-- Name of add-on as listed by "zypper search --type product" -->
        <name>sle-we</name>
        <reg_code>5eedd26a</reg_code>
      </addon>
      <addon>
        <name>sle-live-patching</name>
        <reg_code>8c541494</reg_code>
      </addon>
      <addon>
        <!-- SLES is not an add-on but listing it here allows for combining
             several base product registration codes in a single file -->
        <name>SLES</name>
        <reg_code>cc36aae1</reg_code>
      </addon>
      <addon>
        <name>SLED</name>
        <reg_code>309105d4</reg_code>
      </addon>
    </addons>
  </suse_register>
</profile>

Screenshots

regcode-from-usb regcode-from-usb-extensions

References