Fabian Vogt
08878d84e8
- Support the dracut network-manager module - Remove /var/lib/YaST2/reconfig_system on successful runs OBS-URL: https://build.opensuse.org/request/show/959824 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/combustion?expand=0&rev=24
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package combustion
|
|
#
|
|
# Copyright (c) 2022 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: combustion
|
|
Version: 0.2
|
|
Release: 0
|
|
Summary: System for initial configuration of appliances
|
|
License: GPL-2.0-or-later
|
|
Group: System/Management
|
|
URL: https://build.opensuse.org/package/show/home:Vogtinator:combustion/combustion
|
|
Source1: LICENSE
|
|
Source2: README
|
|
Source3: module-setup.sh
|
|
Source4: combustion.service
|
|
Source5: combustion-prepare.service
|
|
Source6: combustion
|
|
Source7: combustion.rules
|
|
Requires: ignition-dracut-grub2
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Combustion is a minimal module for dracut, which runs a user provided script on
|
|
the first boot of a transactional system.
|
|
|
|
You can use this to create additional files, install packages, set up devices
|
|
or even re-partition the hard disk. The configuration can be provided as a
|
|
shell script, loaded from an external storage media and is run during boot in a
|
|
new system snapshot. On success, the system will directly boot into that new
|
|
snapshot, so that no reboot is needed.
|
|
|
|
%prep
|
|
cp %{SOURCE1} %{SOURCE2} .
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_prefix}/lib/dracut/modules.d/35combustion
|
|
cd %{buildroot}%{_prefix}/lib/dracut/modules.d/35combustion/
|
|
install -m0644 %{SOURCE3} module-setup.sh
|
|
install -m0644 %{SOURCE4} combustion.service
|
|
install -m0644 %{SOURCE5} combustion-prepare.service
|
|
install -m0755 %{SOURCE6} combustion
|
|
install -m0644 %{SOURCE7} combustion.rules
|
|
|
|
%post
|
|
%{?regenerate_initrd_post}
|
|
|
|
%posttrans
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README
|
|
%dir %{_prefix}/lib/dracut/
|
|
%dir %{_prefix}/lib/dracut/modules.d/
|
|
%{_prefix}/lib/dracut/modules.d/35combustion/
|
|
|
|
%changelog
|