commit e3c9fa9ebe11b521d11feb327ae22c63911d4cb8 Author: tigro Date: Sun Nov 10 08:40:52 2024 +0300 import sphere-release-raspberrypi-9-1.el9 diff --git a/.sphere-release-raspberrypi.metadata b/.sphere-release-raspberrypi.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/msvsphere-raspberrypi.repo b/SOURCES/msvsphere-raspberrypi.repo new file mode 100644 index 0000000..40d6065 --- /dev/null +++ b/SOURCES/msvsphere-raspberrypi.repo @@ -0,0 +1,30 @@ +[raspberrypi] +name=MSVSphere $releasever - Raspberry Pi +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/raspberrypi +# baseurl=https://repo1.msvsphere-os.ru/msvsphere/$releasever/RaspberryPi/$basearch/os/ +enabled=1 +gpgcheck=1 +countme=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=1 + +[raspberrypi-debuginfo] +name=MSVSphere $releasever - Raspberry Pi - Debug +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/raspberrypi-debug +# baseurl=https://repo1.msvsphere-os.ru/vault/$releasever/RaspberryPi/debug/$basearch/ +enabled=0 +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 + +[raspberrypi-source] +name=MSVSphere $releasever - Raspberry Pi - Source +mirrorlist=https://mirrors.inferitos.ru/mirrorlist/$releasever/raspberrypi-source +# baseurl=https://repo1.msvsphere-os.ru/vault/$releasever/RaspberryPi/sources/ +enabled=0 +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-MSVSphere-9 +metadata_expire=86400 +enabled_metadata=0 diff --git a/SOURCES/rootfs-expand b/SOURCES/rootfs-expand new file mode 100755 index 0000000..baab79a --- /dev/null +++ b/SOURCES/rootfs-expand @@ -0,0 +1,31 @@ +#!/bin/bash + +clear +part=$(mount |grep '^/dev.* / ' |awk '{print $1}') +if [ -z "$part" ];then + echo "Error detecting rootfs" + exit -1 +fi +dev=$(echo $part|sed 's/[0-9]*$//g') +devlen=${#dev} +num=${part:$devlen} +if [[ "$dev" =~ ^/dev/mmcblk[0-9]*p$ ]];then + dev=${dev:0:-1} +fi +if [ ! -x /usr/bin/growpart ];then + echo "Please install cloud-utils-growpart (sudo yum install cloud-utils-growpart)" + exit -2 +fi +if [ ! -x /usr/sbin/resize2fs ];then + echo "Please install e2fsprogs (sudo yum install e2fsprogs)" + exit -3 +fi +echo $part $dev $num + +echo "Extending partition $num to max size ...." +growpart $dev $num +echo "Resizing ext4 filesystem ..." +resize2fs $part +echo "Done." +df -h |grep $part + diff --git a/SPECS/sphere-release-raspberrypi.spec b/SPECS/sphere-release-raspberrypi.spec new file mode 100644 index 0000000..4e4fd7b --- /dev/null +++ b/SPECS/sphere-release-raspberrypi.spec @@ -0,0 +1,35 @@ +Summary: Raspberry Pi support packages from the MSVSphere Core SIG repository +Name: sphere-release-raspberrypi +Version: 9 +Release: 1%{?dist} +License: GPLv2 +URL: https://msvsphere-os.ru +Source0: msvsphere-raspberrypi.repo +Source1: rootfs-expand + +Provides: sphere-release-raspberrypi = 9 + +%description +yum configuration for Raspberry Pi support packages from the MSVSphere Core SIG. + +%install +install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/msvsphere-raspberrypi.repo +install -D -m 750 %{SOURCE1} %{buildroot}%{_bindir}/rootfs-expand + +%files +%defattr(-,root,root) +%{_bindir}/rootfs-expand +%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-raspberrypi.repo + +%changelog +* Sun Nov 10 2024 Arkady L. Shane - 9-1 +- Rebuilt for MSVSphere 9.5 + +* Sun Nov 10 2024 Arkady L. Shane - 9-1 +- Rename to sphere-release-raspberrypi + +* Sat Nov 09 2024 Arkady L. Shane - 9-1 +- Rebuilt for MSVSphere 9.5 + +* Fri May 27 2022 Eduard Abdullin - 9-0 +- Initial version