commit 4b389b304432e9e77086c7281572c12121debc5c Author: Adrian Schröter Date: Wed Feb 21 14:14:58 2024 +0100 Sync from SUSE:ALP:Source:Standard:1.0 growpart-rootgrow revision 7efca5f745daf2b076f501acbb5215e6 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/growpart-rootgrow.changes b/growpart-rootgrow.changes new file mode 100644 index 0000000..e69cbf6 --- /dev/null +++ b/growpart-rootgrow.changes @@ -0,0 +1,155 @@ +------------------------------------------------------------------- +Wed Feb 14 18:53:27 UTC 2024 - Robert Schweikert + +- Update to version 1.0.7 (bsc#1219941) + + Support root to be in a btrfs snapshot + + 1.0.6 had different implementation for btrfs in snapshot support + +------------------------------------------------------------------- +Mon Aug 2 18:58:52 UTC 2021 - Sean Marlow + +- Fix root partition ID lookup. Only consider trailing digits to be + part of the paritition ID. (bsc#1188868) (bsc#1188904) + +------------------------------------------------------------------- +Tue Jul 13 13:45:49 EDT 2021 - Robert Schweikert + +- Change the logic to determine the partition ID of the root filesystem + (bsc#1188179) + + Previously the algorithm depended on the order of the output + from lsblk using an index to keep track of the known partitions. + The new implementation is order independent, it depends on the + partition ID being numerical in nature and at the end of the device + string. + +------------------------------------------------------------------- +Fri Jan 22 16:26:58 EST 2021 - Sean Marlow + +- Add coverage config. + + Omit version module from coverage check. + +------------------------------------------------------------------- +Fri Jan 22 16:24:42 EST 2021 - Sean Marlow + +- Fix string formatting for flake8 formatting. + +------------------------------------------------------------------- +Fri Jan 22 16:13:09 EST 2021 - Sean Marlow + +- Replace travis testing with GitHub actions. + + Add ci testing workflow action. + +------------------------------------------------------------------- +Fri Feb 28 09:39:36 EST 2020 - Robert Schweikert + +- Switch implementation to use Popen for Python 3.4 compatibility (bsc#1165198) + +------------------------------------------------------------------- +Fri Feb 28 09:34:40 EST 2020 - Robert Schweikert + +- Bump version: 1.0.2 → 1.0.3 + +------------------------------------------------------------------- +Fri Feb 28 04:57:57 EST 2020 - Marcus Schäfer + +- Fixed unit tests and style + + This clobbers several fixes into one. Sorry about it but I + started on already made changes done by other people. + This commit includes several pep8 style fixes mostly on + the indentation level. In addition it fixes the unit + tests to really cover all code and to make the exception + tests really effective. + +------------------------------------------------------------------- +Thu Feb 27 19:26:45 EST 2020 - Robert Schweikert + +- Switch to use Popen instead of run + + The run() fuction in the subprocess module was implemented after + Python 3.4. However, we need to support Python 3.4 for SLES 12 + +------------------------------------------------------------------- +Thu Nov 07 06:05:25 EST 2019 - Marcus Schäfer + +- Bump version: 1.0.1 → 1.0.2 + +------------------------------------------------------------------- +Tue Nov 05 11:35:08 EST 2019 - Marcus Schäfer + +- Package LICENSE file + + The LICENSE file is part of the source repo but was not + packaged with the rpm package + +------------------------------------------------------------------- +Thu Oct 24 08:38:48 EDT 2019 - Marcus Schäfer + +- Bump version: 1.0.0 → 1.0.1 + +------------------------------------------------------------------- +Thu Oct 24 08:37:46 EDT 2019 - Marcus Schäfer + +- Reference entry for maintenance + + Tracker bug for the submission set to: bsc#1154357 + +------------------------------------------------------------------- +Mon Aug 26 04:37:37 EDT 2019 - Marcus Schäfer + +- Fixed binary location in service unit file + + rootgrow is installed via the console_scripts entrypoint + of pythons setuptools. Unfortunately that entrypoint does + not have an easy way to target a console script to /usr/sbin + which would be the correct location. As patching the situation + in setuptools will cause a huge chain of after effects for + a simple thing I decided to just go with /usr/bin and provide + this simple one liner patch in the systemd service file + +------------------------------------------------------------------- +Mon Aug 19 09:24:44 EDT 2019 - Marcus Schäfer + +- Bump version: 0.0.2 → 1.0.0 + +------------------------------------------------------------------- +Mon Aug 19 09:23:52 EDT 2019 - Marcus Schäfer + +- Name package growpart-rootgrow for compat reasons + + Avoid any change on the image description level. This requires + the package to be named like the subpackage from the growpart + build before + +------------------------------------------------------------------- +Wed Aug 14 10:58:00 EDT 2019 - Marcus Schäfer + +- Bump version: 0.0.1 → 0.0.2 + +------------------------------------------------------------------- +Wed Aug 14 10:55:30 EDT 2019 - Marcus Schäfer + +- Update spec file requirement list + +------------------------------------------------------------------- +Tue Aug 13 09:21:21 EDT 2019 - Marcus Schäfer + +- Refactor entire code and device handling + + Split code into more readable parts. Make use of + util linux findmnt, lsblk and friends and stabilize + the entire code base. Also cover code with unit tests + +------------------------------------------------------------------- +Fri Jul 26 11:08:20 EDT 2019 - Marcus Schäfer + +- Initial project setup + + Created all infrastructure, testing, virtualenv and package + data files to develop rootgrow as a python project. Also + adapted the existing code to be flake8 clean. Some more + restructuring and especially unit testing needs to be done + prior to the first package build + diff --git a/growpart-rootgrow.spec b/growpart-rootgrow.spec new file mode 100644 index 0000000..171a9be --- /dev/null +++ b/growpart-rootgrow.spec @@ -0,0 +1,63 @@ +# +# spec file for package growpart-rootgrow +# +# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: growpart-rootgrow +Version: 1.0.7 +Release: 0 +Url: https://github.com/SUSE-Enceladus/rootgrow +Summary: Simple Wrapper for growpart +License: GPL-3.0+ +Group: System/Management +Source: growpart-rootgrow.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: systemd-rpm-macros +Requires: python3-setuptools +Requires: util-linux +Requires(preun): systemd +Requires(postun): systemd +BuildArch: noarch + +%description +A simple wrapper implementation for growpart + +%prep +%setup -q -n rootgrow-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +install -D -m 644 systemd/rootgrow.service \ + %{buildroot}%{_unitdir}/rootgrow.service + +install -D -m 644 LICENSE \ + %{buildroot}%{_defaultdocdir}/growpart-rootgrow/LICENSE + +%files +%defattr(-,root,root,-) +%{python3_sitelib}/* +%dir %{_defaultdocdir}/growpart-rootgrow +%{_defaultdocdir}/growpart-rootgrow/LICENSE +%{_bindir}/rootgrow +%{_unitdir}/rootgrow.service + +%changelog diff --git a/growpart-rootgrow.tar.gz b/growpart-rootgrow.tar.gz new file mode 100644 index 0000000..fad7b5b --- /dev/null +++ b/growpart-rootgrow.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3d65049f6857229d5ebbe4774402f17a4b6c1b45742ed7fc5a0f48ff51805d7 +size 18126