import sphere-release-raspberrypi-9-1.el9

i9
Arkady L. Shane 2 months ago
commit e3c9fa9ebe
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -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

@ -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

@ -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 <tigro@msvsphere-os.ru> - 9-1
- Rebuilt for MSVSphere 9.5
* Sun Nov 10 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 9-1
- Rename to sphere-release-raspberrypi
* Sat Nov 09 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 9-1
- Rebuilt for MSVSphere 9.5
* Fri May 27 2022 Eduard Abdullin <eabdullin@almalinux.org> - 9-0
- Initial version
Loading…
Cancel
Save