## Problem - Local DVD cannot be used for installation, offline installation is not possible - We have a [special branch](https://github.com/openSUSE/agama/compare/install_from_2nd_DVD?expand=1) with this feature and build special ISO but I think it should work out of box with upstream Agama - Sooner or later we will need to support installation from the local media anyway ## Solution - A disk label defines the installation repository name for each product - If such disk label is found then that disk is used as the installation repository - If no label is found in the system it uses the online repositories - If multiple labels are found then the DVD device is preferred ## Testing - Tested manually, when the Tumbleweed DVD is present it is automatically used instead of the online repositories - When the product is switched to MicroOS and the DVD is not present it uses the online repositories --------- Co-authored-by: Imobach González Sosa <igonzalezsosa@suse.com>
93 lines
3.5 KiB
YAML
93 lines
3.5 KiB
YAML
---
|
|
:sourceurl: "%{mod_full_name}.gem"
|
|
:sources:
|
|
- po.tar.bz2
|
|
- install_translations.sh
|
|
:preamble: |-
|
|
%global rb_build_versions %{rb_default_ruby}
|
|
BuildRequires: dbus-1-common
|
|
# "msgfmt" tool
|
|
BuildRequires: gettext-runtime
|
|
Requires: dbus-1-common
|
|
:post_install: |-
|
|
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/share/dbus.conf %{buildroot}%{_datadir}/dbus-1/agama.conf
|
|
install --directory %{buildroot}%{_datadir}/dbus-1/agama-services
|
|
install -m 0644 --target-directory=%{buildroot}%{_datadir}/dbus-1/agama-services %{buildroot}%{gem_base}/gems/%{mod_full_name}/share/org.opensuse.Agama*.service
|
|
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/share/agama.service %{buildroot}%{_unitdir}/agama.service
|
|
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/share/agama-proxy-setup.service %{buildroot}%{_unitdir}/agama-proxy-setup.service
|
|
install --directory %{buildroot}/usr/share/agama/conf.d
|
|
install -D -m 0644 %{buildroot}%{gem_base}/gems/%{mod_full_name}/conf.d/*.yaml %{buildroot}/usr/share/agama/conf.d/
|
|
# run a script for installing the translations
|
|
sh "%{SOURCE2}" "%{SOURCE1}"
|
|
:main:
|
|
:preamble: |-
|
|
# Override build.rpm, see also https://github.com/openSUSE/obs-build/blob/master/configs/
|
|
%global rb_build_versions %{rb_default_ruby}
|
|
Provides: agama-yast
|
|
BuildRequires: dbus-1-common
|
|
Requires: dbus-1-common
|
|
Requires: suseconnect-ruby-bindings
|
|
# YaST dependencies
|
|
Requires: autoyast2-installation
|
|
# ArchFilter
|
|
Requires: yast2 >= 4.5.20
|
|
Requires: yast2-bootloader
|
|
Requires: yast2-country
|
|
Requires: yast2-hardware-detection
|
|
Requires: yast2-installation
|
|
Requires: yast2-iscsi-client >= 4.5.7
|
|
Requires: yast2-network
|
|
Requires: yast2-proxy
|
|
Requires: yast2-storage-ng >= 5.0.13
|
|
Requires: yast2-users
|
|
%ifarch s390 s390x
|
|
Requires: yast2-s390 >= 4.6.4
|
|
Requires: yast2-reipl
|
|
Requires: yast2-cio
|
|
%endif
|
|
# Storage dependencies
|
|
Requires: bcache-tools
|
|
Requires: btrfsprogs
|
|
Requires: cryptsetup
|
|
Requires: dmraid
|
|
Requires: dosfstools
|
|
Requires: e2fsprogs
|
|
Requires: exfat-utils
|
|
Requires: f2fs-tools
|
|
Requires: fcoe-utils
|
|
%ifarch x86_64 aarch64
|
|
Requires: fde-tools
|
|
%endif
|
|
Requires: jfsutils
|
|
Requires: libstorage-ng-lang
|
|
Requires: lvm2
|
|
Requires: mdadm
|
|
Requires: multipath-tools
|
|
Requires: nilfs-utils
|
|
Requires: nfs-client
|
|
Requires: ntfs-3g
|
|
Requires: ntfsprogs
|
|
Requires: nvme-cli
|
|
Requires: open-iscsi
|
|
Requires: quota
|
|
Requires: snapper
|
|
Requires: udftools
|
|
Requires: xfsprogs
|
|
Requires: yast2-schema
|
|
# lsblk
|
|
Requires: util-linux-systemd
|
|
:filelist: "%{_datadir}/dbus-1/agama.conf\n
|
|
%dir %{_datadir}/dbus-1/agama-services\n
|
|
%{_datadir}/dbus-1/agama-services/org.opensuse.Agama*.service\n
|
|
%{_unitdir}/agama.service\n
|
|
%{_unitdir}/agama-proxy-setup.service\n
|
|
%dir %{_datadir}/agama\n
|
|
%dir %{_datadir}/agama/conf.d\n
|
|
%{_datadir}/agama/conf.d\n
|
|
%dir /usr/share/YaST2\n
|
|
/usr/share/YaST2/locale\n"
|
|
:scripts:
|
|
:pre: "%service_add_pre agama.service"
|
|
:post: "%service_add_post agama.service"
|
|
:preun: "%service_del_preun agama.service"
|
|
:postun: "%service_del_postun_with_restart agama.service"
|