File combustion.spec of Package combustion

# spec file for package combustion
# Copyright (c) 2021 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

Name:           combustion
Version:        0.2
Release:        0
Summary:        System for initial configuration of appliances
License:        GPL-2.0-or-later
Group:          System/Management
Source1:        LICENSE
Source2:        README
Source4:        combustion.service
Source5:        combustion-prepare.service
Source6:        combustion
Source7:        combustion.rules
Requires:       ignition-dracut-grub2
BuildArch:      noarch

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.

cp %{SOURCE1} %{SOURCE2} .


mkdir -p %{buildroot}%{_prefix}/lib/dracut/modules.d/35combustion
cd %{buildroot}%{_prefix}/lib/dracut/modules.d/35combustion/
install -m0644 %{SOURCE3}
install -m0644 %{SOURCE4} combustion.service
install -m0644 %{SOURCE5} combustion-prepare.service
install -m0755 %{SOURCE6} combustion
install -m0644 %{SOURCE7} combustion.rules



%license LICENSE
%dir %{_prefix}/lib/dracut/
%dir %{_prefix}/lib/dracut/modules.d/

openSUSE Build Service is sponsored by