osc copypac from project:devel:microos:systemd-boot package:sdbootutil revision:17
OBS-URL: https://build.opensuse.org/package/show/devel:microos/sdbootutil?expand=0&rev=1
This commit is contained in:
commit
3302ae9441
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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
12
_service
Normal file
12
_service
Normal file
@ -0,0 +1,12 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/lnussel/sdbootutil.git</param>
|
||||
<param name="revision">main</param>
|
||||
<param name="versionformat">1+git%cd.%h</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="extract">sdbootutil.spec</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual" />
|
||||
<service name="tar" mode="buildtime"/>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/lnussel/sdbootutil.git</param>
|
||||
<param name="changesrevision">f5c7e48bca77729870773e940df9426ee83c5ae5</param></service></servicedata>
|
3
sdbootutil-1+git20230711.f5c7e48.obscpio
Normal file
3
sdbootutil-1+git20230711.f5c7e48.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:10ba0f22cf74511399c425a064400f3381c29c5fc8a95adfd014434f7568cdd0
|
||||
size 322571
|
23
sdbootutil.changes
Normal file
23
sdbootutil.changes
Normal file
@ -0,0 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 11 11:41:45 UTC 2023 - lnussel@suse.com
|
||||
|
||||
- Update to version 1+git20230711.f5c7e48:
|
||||
* Fix setting root and rootflags
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 11 09:08:51 UTC 2023 - lnussel@suse.com
|
||||
|
||||
- Update to version 1+git20230626.1ef6b4d:
|
||||
* creating /etc/kernel directory
|
||||
* Update help screen
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 15 11:25:16 UTC 2023 - lnussel@suse.de
|
||||
|
||||
- Update to version 1+git20230615.587e134:
|
||||
* Handle out of space
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 15 10:57:25 UTC 2023 - Ludwig Nussel <lnussel@suse.de>
|
||||
|
||||
- initial package
|
4
sdbootutil.obsinfo
Normal file
4
sdbootutil.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: sdbootutil
|
||||
version: 1+git20230711.f5c7e48
|
||||
mtime: 1689075604
|
||||
commit: f5c7e48bca77729870773e940df9426ee83c5ae5
|
138
sdbootutil.spec
Normal file
138
sdbootutil.spec
Normal file
@ -0,0 +1,138 @@
|
||||
#
|
||||
# spec file for package sdbootutil
|
||||
#
|
||||
# Copyright (c) 2023 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 nvr %{name}-%{version}-%{release}
|
||||
%if 0%{?_build_in_place}
|
||||
%define git_version %(git log '-n1' '--date=format:%Y%m%d' '--no-show-signature' "--pretty=format:+git%cd.%h")
|
||||
BuildRequires: git-core
|
||||
%else
|
||||
# this is required for obs' source validator. It's
|
||||
# 20-files-present-and-referenced ignores all conditionals. So the
|
||||
# definition of git_version actually happens always.
|
||||
%define git_version %{nil}
|
||||
%endif
|
||||
Name: sdbootutil
|
||||
Version: 1+git20230711.f5c7e48%{git_version}
|
||||
Release: 0
|
||||
Summary: script to install shim with sd-boot
|
||||
License: MIT
|
||||
URL: https://en.opensuse.org/openSUSE:Usr_merge
|
||||
Source: %{name}-%{version}.tar
|
||||
# XXX systemd-boot is in udev
|
||||
Requires: jq
|
||||
Requires: sed
|
||||
Supplements: (udev and shim)
|
||||
|
||||
%description
|
||||
Hook scripts to install shim along with systemd-boot
|
||||
|
||||
%package filetriggers
|
||||
Summary: File triggers for sdbootutil
|
||||
Requires: sdbootutil >= %{version}-%{release}
|
||||
Conflicts: (suse-module-tools with suse-kernel-rpm-scriptlets)
|
||||
|
||||
%description filetriggers
|
||||
File trigger scripts for sdbootutil
|
||||
|
||||
%package snapper
|
||||
Summary: plugin script for snapper
|
||||
Requires: %{name} = %{version}
|
||||
Requires: btrfsprogs
|
||||
Requires: sdbootutil >= %{version}-%{release}
|
||||
Requires: snapper
|
||||
Supplements: (snapper and btrfsprogs)
|
||||
|
||||
%description snapper
|
||||
Plugin scripts for snapper to handle BLS config files
|
||||
|
||||
%package rpm-scriptlets
|
||||
Summary: dummy scriptlets for the kernel
|
||||
Conflicts: suse-kernel-rpm-scriptlets
|
||||
Provides: suse-kernel-rpm-scriptlets
|
||||
|
||||
%description rpm-scriptlets
|
||||
Empty scriptlets to satisfy kernel dependencies
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -D -m 644 kernelhooks.lua %{buildroot}%{_rpmconfigdir}/lua/kernelhooks.lua
|
||||
install -D -m 755 sdbootutil %{buildroot}%{_bindir}/sdbootutil
|
||||
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/module-init-tools/kernel-scriptlets
|
||||
for a in cert inkmp kmp rpm; do
|
||||
for b in post posttrans postun pre preun; do
|
||||
ln -s /bin/true %{buildroot}%{_prefix}/lib/module-init-tools/kernel-scriptlets/$a-$b
|
||||
done
|
||||
done
|
||||
|
||||
# snapper
|
||||
install -d -m755 %{buildroot}%{_prefix}/lib/snapper/plugins
|
||||
for i in 10-sdbootutil.snapper; do
|
||||
install -m 755 $i %{buildroot}%{_prefix}/lib/snapper/plugins/$i
|
||||
done
|
||||
|
||||
%transfiletriggerin filetriggers -p <lua> -- %{_prefix}/lib/modules/
|
||||
require("kernelhooks")
|
||||
if posix.getenv("VERBOSE_FILETRIGGERS") then
|
||||
kernelhooks.debug = "%{nvr}(in)"
|
||||
end
|
||||
file = rpm.next_file()
|
||||
while file do
|
||||
kernelhooks.filter(file)
|
||||
file = rpm.next_file()
|
||||
end
|
||||
kernelhooks.add()
|
||||
io.flush()
|
||||
|
||||
%transfiletriggerun filetriggers -p <lua> -- %{_prefix}/lib/modules/
|
||||
-- the module is already gone if we get called for ourselves
|
||||
if pcall(require, 'kernelhooks') then
|
||||
if posix.getenv("VERBOSE_FILETRIGGERS") then
|
||||
kernelhooks.debug = "%{nvr}(postun)"
|
||||
end
|
||||
file = rpm.next_file()
|
||||
while file do
|
||||
kernelhooks.filter(file)
|
||||
file = rpm.next_file()
|
||||
end
|
||||
kernelhooks.remove()
|
||||
io.flush()
|
||||
end
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/sdbootutil
|
||||
|
||||
%files filetriggers
|
||||
%dir %{_rpmconfigdir}/lua
|
||||
%{_rpmconfigdir}/lua/kernelhooks.lua
|
||||
|
||||
%files rpm-scriptlets
|
||||
%dir %{_prefix}/lib/module-init-tools
|
||||
%{_prefix}/lib/module-init-tools/*
|
||||
|
||||
%files snapper
|
||||
%dir %{_prefix}/lib/snapper
|
||||
%dir %{_prefix}/lib/snapper/plugins
|
||||
%{_prefix}/lib/snapper/plugins/*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user