Sync from SUSE:ALP:Source:Standard:1.0 systemd-presets-branding-Elemental revision ee41a2732a2e33b01096b2d2c9dd0bc5
This commit is contained in:
commit
05d169e9b4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
11
50-default-Elemental.preset
Normal file
11
50-default-Elemental.preset
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
enable sshd.service
|
||||||
|
enable systemd-timesyncd.service
|
||||||
|
enable NetworkManager.service
|
||||||
|
enable elemental-setup-boot.service
|
||||||
|
enable elemental-setup-fs.service
|
||||||
|
enable elemental-setup-initramfs.service
|
||||||
|
enable elemental-setup-network.service
|
||||||
|
enable elemental-setup-reconcile.service
|
||||||
|
enable elemental-setup-reconcile.timer
|
||||||
|
enable elemental-setup-rootfs.service
|
||||||
|
enable shutdown-containerd.service
|
20
systemd-presets-branding-Elemental.changes
Normal file
20
systemd-presets-branding-Elemental.changes
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 9 11:22:07 UTC 2024 - David Cassany <dcassany@suse.com>
|
||||||
|
|
||||||
|
- Rename it back to systemd-presets-branding-Elemental
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 14 13:46:18 UTC 2023 - Klaus Kämpf <kkaempf@suse.com>
|
||||||
|
|
||||||
|
- merge with systemd-presets-branding-Elemental
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 13 14:40:09 UTC 2022 - Klaus Kämpf <kkaempf@suse.com>
|
||||||
|
|
||||||
|
- start sshd and NetworkManager
|
||||||
|
- drop ros-installer and rancherd
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 31 11:41:40 UTC 2022 - Klaus Kämpf <kkaempf@suse.com>
|
||||||
|
|
||||||
|
- Initial version 20220131
|
89
systemd-presets-branding-Elemental.spec
Normal file
89
systemd-presets-branding-Elemental.spec
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#
|
||||||
|
# spec file for package systemd-presets-branding-SLE-Micro-for-Rancher
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define generic_name systemd-presets-branding
|
||||||
|
|
||||||
|
Name: systemd-presets-branding-Elemental
|
||||||
|
Version: 20240109
|
||||||
|
Release: 0
|
||||||
|
Summary: Systemd default presets for Elemental
|
||||||
|
License: MIT
|
||||||
|
Group: System/Base
|
||||||
|
Source0: 50-default-Elemental.preset
|
||||||
|
BuildRequires: systemd-presets-common-SUSE
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
#!BuildIgnore: systemd-presets-branding
|
||||||
|
Requires: systemd-presets-common-SUSE
|
||||||
|
PreReq: coreutils
|
||||||
|
# systemd-presets-common-SUSE provides
|
||||||
|
Requires(pre): systemd-presets-common-SUSE
|
||||||
|
Supplements: packageand(systemd:branding-Elemental)
|
||||||
|
Conflicts: systemd-presets-branding
|
||||||
|
Provides: systemd-presets-branding = %{version}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Default presets for systemd on Elemental
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -T -c
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset
|
||||||
|
install -m644 %{SOURCE0} %{buildroot}%{_prefix}/lib/systemd/system-preset/
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# On initial installation, branding-preset-states does not yet exist,
|
||||||
|
# which is why we also check for the file to be present/executable
|
||||||
|
if [ $1 -gt 1 -a -x %{_prefix}/lib/%{generic_name}/branding-preset-states ] ; then
|
||||||
|
#
|
||||||
|
# Save the old state so we can detect which package have its
|
||||||
|
# default changed later.
|
||||||
|
#
|
||||||
|
# Note: the old version of the script is used here.
|
||||||
|
#
|
||||||
|
%{_prefix}/lib/%{generic_name}/branding-preset-states save
|
||||||
|
elif [ $1 -eq 1 ]; then
|
||||||
|
touch /run/rpm-%{name}-preset-all
|
||||||
|
fi
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ $1 -gt 1 ] ; then
|
||||||
|
#
|
||||||
|
# Now that the updated presets are installed, find the ones
|
||||||
|
# that have been changed and apply "systemct preset" on them.
|
||||||
|
#
|
||||||
|
%{_prefix}/lib/%{generic_name}/branding-preset-states apply-changes
|
||||||
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
if [ -f /run/rpm-%{name}-preset-all ]; then
|
||||||
|
# Enable all services, which were installed before systemd
|
||||||
|
# Don't disable services, since this would disable the
|
||||||
|
# complete network stack.
|
||||||
|
systemctl preset-all --preset-mode=enable-only
|
||||||
|
fi
|
||||||
|
rm -f /run/rpm-%{name}-preset-all
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_prefix}/lib/systemd/system-preset/*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user