2023-09-14 17:16:40 +08:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%define src_name x2nestos.sh
|
|
|
|
|
|
|
|
|
|
Name: x2nestos
|
2023-09-25 20:22:03 +08:00
|
|
|
Version: v0.1.1
|
2023-09-14 17:16:40 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: A Tool used to convert a general linux operating system to NestOS For Container.
|
|
|
|
|
License: MulanPSL-2.0
|
|
|
|
|
URL: https://gitee.com/openeuler/x2nestos
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
Requires: kexec-tools
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Convert to NestOS For Container based on immutable operating systems, based on deployed general OS forms such as OpenEuler.
|
|
|
|
|
Suitable for scenarios where it is not convenient to reboot installation or convert in large quantities.
|
|
|
|
|
|
|
|
|
|
Attention:
|
|
|
|
|
1. Non migration tools and do NOT retain disk data.
|
|
|
|
|
2. This conversion is irreversible.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Nothing to build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}/usr/bin
|
|
|
|
|
install -m 755 %{src_name} %{buildroot}/usr/bin/%{name}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/x2nestos
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md README.en.md
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-09-25 20:22:03 +08:00
|
|
|
* Mon Sep 25 2023 wangyueliang <wangyueliang@kylinos.cn> - v0.1.1-1
|
|
|
|
|
- Release v0.1.1
|
|
|
|
|
|
2023-09-14 17:16:40 +08:00
|
|
|
* Thu Sep 14 2023 wangyueliang <wangyueliang@kylinos.cn> - v0.1.0-1
|
2023-09-25 20:22:03 +08:00
|
|
|
- Release v0.1.0
|