Initial version for 10 Kitten #2

Merged
alukoshko merged 2 commits from metalefty/almalinux-release-raspberrypi:a10s into a10s 2025-01-08 12:03:47 +00:00
3 changed files with 15 additions and 55 deletions

View File

@ -1,27 +1,27 @@
# Raspberry PI repo for AlmaLinux
# Raspberry Pi repo for AlmaLinux
[raspberrypi]
name=AlmaLinux $releasever - Raspberry Pi
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/raspberrypi
# baseurl=https://repo.almalinux.org/almalinux/$releasever/raspberrypi/$basearch/os/
mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/raspberrypi
# baseurl=https://kitten.vault.almalinux.org/$releasever-kitten/raspberrypi/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-10
## Sources
[raspberrypi-source]
name=AlmaLinux $releasever - Raspberry Pi Source
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/raspberrypi-source
# baseurl=https://repo.almalinux.org/vault/$releasever/raspberrypi/Source/
mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/raspberrypi-source
# baseurl=https://kitten.vault.almalinux.org/$releasever-kitten/raspberrypi/Source/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-10
## Debug
[raspberrypi-debuginfo]
name=AlmaLinux $releasever - Raspberry Pi debuginfo
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/raspberrypi-debuginfo
# baseurl=https://repo.almalinux.org/vault/$releasever/raspberrypi/debug/$basearch/
mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/raspberrypi-debug
# baseurl=https://kitten.vault.almalinux.org/$releasever-kitten/raspberrypi/debug/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-10

View File

@ -1,32 +1,23 @@
Summary: Raspberry Pi support packages from the AlmaLinux Core SIG repository
Name: almalinux-release-raspberrypi
Version: 9
Release: 3%{?dist}
Version: 10
Release: 1%{?dist}
License: GPLv2
URL: https://wiki.almalinux.org/sigs/Core
Source0: almalinux-raspberrypi.repo
Source1: rootfs-expand
Provides: almalinux-release-raspberrypi = 9
Provides: almalinux-release-raspberrypi = 10
%description
yum configuration for Raspberry Pi support packages from the AlmaLinux Core SIG.
%install
install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/almalinux-raspberrypi.repo
install -D -m 750 %{SOURCE1} %{buildroot}%{_bindir}/rootfs-expand
%files
%defattr(-,root,root)
%{_bindir}/rootfs-expand
%config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-raspberrypi.repo
%changelog
* Wed May 24 2023 Andrew Lukoshko <alukoshko@almalinux.org> - 9-3
- Update Source and debug URLs
* Wed Apr 19 2023 Koichiro Iwao <koichiro.iwao@miraclelinux.com> - 9-2
- Fix wrong GPG key path
* Fri May 27 2022 Eduard Abdullin <eabdullin@almalinux.org> - 9-1
- Initial version
* Wed Jan 08 2025 Koichiro Iwao <meta@almalinux.org> - 10-1
- Initial version

View File

@ -1,31 +0,0 @@
#!/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