Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
yast2-firstboot.15824
yast2-firstboot.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File yast2-firstboot.spec of Package yast2-firstboot.15824
# # spec file for package yast2-firstboot # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: yast2-firstboot Version: 4.2.15 Release: 0 Summary: YaST2 - Initial System Configuration License: GPL-2.0-only Group: System/YaST URL: https://github.com/yast/yast-firstboot Source0: %{name}-%{version}.tar.bz2 BuildRequires: docbook-xsl-stylesheets BuildRequires: libxslt BuildRequires: ruby BuildRequires: update-desktop-files BuildRequires: yast2-devtools >= 4.2.2 PreReq: %fillup_prereq # yast2/NeworkDevices -> yast2/NetworkInterfaces Requires: yast2 >= 2.16.23 # Language::SwitchToEnglishIfNeeded Requires: yast2-country >= 2.19.5 # Rely on the YaST2-Firstboot.service for halting the system on failure Requires: yast2-installation >= 4.1.2 # Use Yast::Lan.write_config to write hostname changes Requires: yast2-configuration-management >= 4.1.3 Requires: yast2-network >= 4.2.74 Requires: yast2-ruby-bindings >= 1.0.0 # bsc #1165646 Recommends: (icewm if libyui-qt) BuildArch: noarch %description The YaST firstboot utility runs after installation is completed. It guides the user through a series of steps that allows for easier configuration of the machine. YaST firstboot does not run by default and has to be configured to run by the user or the system administrator. It is useful for image deployments where the system in the image is completely configured, however some last steps like root password and user logins have to be created to personalize the system. %prep %setup -q %build %yast_build # enable registration by default on SLE (bsc#1162846) %if !0%{?is_opensuse} # lets explain this sed. At first it is address which match line with name # registration and +1 for next line and then here change false to true sed -i '/<name>registration/,+1s/false/true/' control/firstboot.xml %endif %install %yast_install %yast_metainfo mkdir -p $RPM_BUILD_ROOT/usr/share/firstboot/scripts %check # verify defaults for registration ruby -r rexml/document -e ' %if !0%{?is_opensuse} expected = "true" %else expected = "false" %endif document = REXML::Document.new(File.new("control/firstboot.xml")) # get value of enabled element in registration module in control.xml to verify it has expected value if document.root.elements["//module[name[text()=\"registration\"]]"].elements["enabled"].get_text != expected STDERR.puts "Wrong default for registration module" exit 1 end' %post %{fillup_only -n firstboot} %files %{yast_ystartupdir} %{yast_clientdir} %{yast_libdir} %{yast_yncludedir} %{yast_moduledir} %{yast_scrconfdir} %{_fillupdir} %{_datadir}/firstboot %doc %{yast_docdir} %license COPYING %{_sysconfdir}/YaST2 %{_datadir}/autoinstall %{yast_schemadir} %{yast_icondir} %{yast_metainfodir} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor