Initial version for 10 Kitten

This commit is contained in:
Koichiro Iwao 2025-01-08 18:10:42 +09:00
parent 38faafd1a4
commit 5b6ecd6f5d
3 changed files with 15 additions and 54 deletions

View File

@ -1,27 +1,28 @@
# Raspberry PI repo for AlmaLinux # Raspberry Pi repo for AlmaLinux
[raspberrypi] [raspberrypi]
name=AlmaLinux $releasever - Raspberry Pi name=AlmaLinux $releasever - Raspberry Pi
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/raspberrypi 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 gpgcheck=1
enabled=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 ## Sources
[raspberrypi-source] [raspberrypi-source]
name=AlmaLinux $releasever - Raspberry Pi Source name=AlmaLinux $releasever - Raspberry Pi Source
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/raspberrypi-source mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/raspberrypi-source
# baseurl=https://repo.almalinux.org/vault/$releasever/raspberrypi/Source/ # baseurl=https://kitten.vault.almalinux.org/$releasever-kitten/raspberrypi/Source/$basearch/
gpgcheck=1 gpgcheck=1
enabled=0 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 ## Debug
[raspberrypi-debuginfo] [raspberrypi-debuginfo]
name=AlmaLinux $releasever - Raspberry Pi debuginfo name=AlmaLinux $releasever - Raspberry Pi debuginfo
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/raspberrypi-debuginfo mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/raspberrypi-debug/
# baseurl=https://repo.almalinux.org/vault/$releasever/raspberrypi/debug/$basearch/ # baseurl=https://kitten.vault.almalinux.org/$releasever-kitten/raspberrypi/debug/$basearch/
gpgcheck=1 gpgcheck=1
enabled=0 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 Summary: Raspberry Pi support packages from the AlmaLinux Core SIG repository
Name: almalinux-release-raspberrypi Name: almalinux-release-raspberrypi
Version: 9 Version: 10
Release: 3%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
URL: https://wiki.almalinux.org/sigs/Core URL: https://wiki.almalinux.org/sigs/Core
Source0: almalinux-raspberrypi.repo Source0: almalinux-raspberrypi.repo
Source1: rootfs-expand
Provides: almalinux-release-raspberrypi = 9 Provides: almalinux-release-raspberrypi = 10
%description %description
yum configuration for Raspberry Pi support packages from the AlmaLinux Core SIG. yum configuration for Raspberry Pi support packages from the AlmaLinux Core SIG.
%install %install
install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/almalinux-raspberrypi.repo install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/almalinux-raspberrypi.repo
install -D -m 750 %{SOURCE1} %{buildroot}%{_bindir}/rootfs-expand
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/rootfs-expand
%config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-raspberrypi.repo %config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-raspberrypi.repo
%changelog %changelog
* Wed May 24 2023 Andrew Lukoshko <alukoshko@almalinux.org> - 9-3 * Wed Jan 08 2025 Koichiro Iwao <meta@almalinux.org> - 10-1
- 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 - 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