agama/service/test/fixtures
Ladislav Slezák f656ef9bcc
Use the DUD repository for installing packages (#2543)
## Problem

- The DUD repository is not used for installing packages into the target
system

## Solution

- Add the local DUD repository into the list of used repositories, use a
higher priority so the provided packages are preferred (even when they
have a lower version than in the other repositories).
- Added `inst.dud_packages.gpg=0` boot option for ignoring GPG problems
with the DUD packages (the other packages are still checked as usually).

## Notes

- Libzypp supports "plaindir" repository type, that is basically a local
directory with RPM files without any metadata. When no metadata is found
in a `dir:/` repository then libzypp automatically switches to the
"plaindir" type and scans the available RPMs there.
- That is easier to handle (no need to create metadata) and it saves
some RAMdisk space (not creating the metadata files). The most important
feature is that the "plaindir" repositories are by definition not GPG
signed so libzypp does not complain about using an unsigned repository.
- So we can remove the `createrepo_c` package from the Live medium and
do not call it.

## Other fixes or improvements

- Fixed parsing the boot options (originally using `inst.foo=x` and
`inst.foo.bar=x` together crashed the installer)
- Deleted the old DUD script (the initial PoC)
- Automatically configure network by dracut when a remote DUD is used
(no need for the explicit `rd.neednet=1` boot option)

## Testing

- Tested manually with a DUD with trivial
[hello-world](https://build.opensuse.org/package/show/home:lslezak:dud-test2/hello-world)
package
- Note: The testing package uses the `Supplements: aaa_base` dependency
to select the package to install, otherwise the package would need to be
selected to install by using CLI.

## Screenshots

The testing package is signed by an unknown GPG key, an error is
reported during installation. When using the `inst.dud_packages.gpg=0`
boot option the error is not displayed and the package is installed
without any problem.


![agama-install-unsigned-package](https://github.com/user-attachments/assets/fa52256b-4dbf-4802-9795-f78a9d3b4054)

After pressing "Continue Anyway" the package is installed into the
system and works as expected and the temporary DUD repository is not
included in the installed system:


![agama-dud-package-installed](https://github.com/user-attachments/assets/8e6bf14a-43fb-4a3a-87d0-c7f40de73023)
2025-07-14 13:51:52 +02:00
..
anchors Implement initial question to import certificate 2025-04-15 16:16:41 +02:00
profiles storage: add autoyast iscsi reader 2025-06-12 11:00:36 +01:00
root_dir Use the DUD repository for installing packages (#2543) 2025-07-14 13:51:52 +02:00
agama-archs.yaml Use 'agama' as packages identifier 2023-03-28 16:49:12 +01:00
agama-single.yaml Rename d-installer.yaml to agama.yaml 2023-03-28 16:49:12 +01:00
agama.cert Rename certificate names 2023-03-28 16:49:12 +01:00
agama.key Rename certificate names 2023-03-28 16:49:12 +01:00
dasd.xml [service] Extend D-Bus API 2023-05-22 13:58:16 +01:00
disks.yaml Support automatic LVM PVs - first step 2024-10-09 10:08:17 +02:00
empty-dm_raids.xml [service] Add devices tree 2023-05-16 11:26:37 +01:00
empty-hd-50GiB.yaml Add support for D-Bus volumes 2022-11-11 15:57:39 +00:00
md_disks.yaml storage: check members of reused md raid 2025-05-14 16:20:54 +01:00
md_raids.yaml refactor(storage): prepare search solvers for adding conditions 2025-05-14 16:20:53 +01:00
multipath-formatted.xml [service] Extend D-Bus API 2023-05-22 13:58:16 +01:00
partitioned_md.yml [service] Add devices tree 2023-05-16 11:26:37 +01:00
sizes.yaml Initial implementation of sorting in the storage configuration 2025-06-16 16:24:39 +02:00
staging-plain-partitions.yaml Write the Iguana mountlist 2023-03-01 17:19:47 +01:00
staging-ro-luks-partitions.yaml Write the Iguana mountlist 2023-03-01 17:19:47 +01:00
storage.yaml service: Backend implementation of AutoYaST proposal 2024-06-05 16:00:08 +02:00
test.pem Implement initial question to import certificate 2025-04-15 16:16:41 +02:00
trivial_lvm.yml web: add Result section to Storage page (#1088) 2024-03-18 09:18:55 +00:00
windows-linux-pc.yml service: Backend implementation of AutoYaST proposal 2024-06-05 16:00:08 +02:00