autoyast: repository on usb partition (leap 15.3)
Hi,
I am trying (unsuccessfully) to create an autoyast installation image
containing an additional repository with some extra packages. But all of them fails with 'Make the add-on "" available
via "..."' during autoyast "Preparing System for Automated
Installation" -> "Configure General Settings"
* disk layout
$ parted -s auto.img unit s print
Model: (file)
Disk auto.img: 9676800s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2636s 9691s 7056s primary fat16 esp, type=ef
2 9692s 9152511s 9142820s primary boot, hidden, type=17
3 9152512s 9676799s 524288s primary ext2 type=83
where partition 3 contains an ext2 filesystem with label CUSTOM
* contents of EFI/BOOT/grub.cfg on partition 1:
menuentry 'Installation' --class opensuse --class gnu-linux --class gnu --class os {
linuxefi /boot/x86_64/loader/linux autoyast=usb:///autoinst.xml
initrdefi /boot/x86_64/loader/initrd
}
* contents of ext2 filesystem on partition 3:
./autoinst.xml
./autoyast-init-script.sh
./etc
./etc/zypp
./etc/zypp/repos.d
./etc/zypp/repos.d/repo-usb.repo
./lost+found
./repo-usb
./repo-usb/noarch
./repo-usb/noarch/ansible-2.9.6-bp153.1.20.noarch.rpm
<...snip...>
./repo-usb/noarch/python3-xmltodict-0.12.0-5.4.1.noarch.rpm
./repo-usb/repodata
./repo-usb/repodata/03a5cb23fd8b5433ecd2f3f0f8012867cf2ea0d6f5715a626f67a61a03b86b09-filelists.xml.gz
./repo-usb/repodata/11a53ade1b3813f57ac17aadda703b73df74bdbb8e695922ebb5c9878f539922-primary.xml.gz
./repo-usb/repodata/d7e60c76cd87a068178dce81bc42f939c25767c94abb7946019fe75a0baf697b-other.xml.gz
./repo-usb/repodata/repomd.xml
./repo-usb/x86_64
./repo-usb/x86_64/libbrotlicommon1-1.0.7-1.59.x86_64.rpm
<...snip...>
./repo-usb/x86_64/sshpass-1.06-bp153.1.16.x86_64.rpm
./setup
./setup/descr
./setup/descr/packages
./setup/descr/packages.DU
./setup/descr/packages.en
* autoinst.xml: add-on section:
I've tried different variations of media_url combined with
product_dir, but I have not been able to get any to work:
<add-on t="map">
On 11/12/21 11:29 AM, Per Lundkvist wrote:
I've tried different variations of media_url combined with product_dir, but I have not been able to get any to work:
<add-on t="map">
<listentry t="map"> ** this fails with Unsupported URI scheme in 'usb:///repo-usb?alias=repo-usb-1' <alias>repo-usb-1</alias> usb:///repo-usb
And the main installation repository is located on the same USB?
If yes, then you can use the relurl:// scheme which points to an URL
relative to the main installation repository. It does not matter
whether it is USB, disk, FTP, HTTP,....
Try this:
Ladislav Slezák wrote:
On 11/12/21 11:29 AM, Per Lundkvist wrote:
I've tried different variations of media_url combined with product_dir, but I have not been able to get any to work:
<add-on t="map">
<listentry t="map"> ** this fails with Unsupported URI scheme in 'usb:///repo-usb?alias=repo-usb-1' <alias>repo-usb-1</alias> usb:///repo-usb And the main installation repository is located on the same USB?If yes, then you can use the relurl:// scheme which points to an URL relative to the main installation repository. It does not matter whether it is USB, disk, FTP, HTTP,....
Try this:
relurl://repo-usb Let me know if that helps.
Yes that works (I am actually satisified with this, but do you know why the other type of url:s doesn't work?) Thank you.
participants (2)
-
Ladislav Slezák
-
Per Lundkvist