rc-boot - obrazy dla memtest86+ oraz rescuecd

Kamil Dziedzic kamil.listy w klecza.pl
Wto, 1 Sty 2008, 17:28:16 CET


Ostatnio natknąłem się na pld'ziane rc-boot (lepiej późno niż wcale;)) i po 
przeczytaniu wątku na temat nietypowego zastosowania rescuecd przyszło mi do 
głowy parę rzeczy które można obejrzeć w załącznikach.

Zanim wrzucę chciałem zapytać czy ktoś ma coś przeciwko? Czy coś może zrobić 
inaczej/lepiej?
-- 
Pozdrawiam, Kamil Dziedzic
-------------- następna część ---------
TYPE=Linux
ROOT=/dev/ram0
KERNEL=/boot/memtest86+.vmlinuz
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: memtest86+.spec.patch
Type: text/x-diff
Size: 2151 bytes
Desc: nie znany
Url : /mailman/pipermail/pld-devel-pl/attachments/20080101/f47f68c1/attachment.bin 
-------------- następna część ---------
TYPE=Linux
ROOT=auto
KERNEL=/boot/vmlinuz
INITRD=/boot/initrd
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: rc-boot.spec.patch
Type: text/x-diff
Size: 2071 bytes
Desc: nie znany
Url : /mailman/pipermail/pld-devel-pl/attachments/20080101/f47f68c1/attachment-0001.bin 
-------------- następna część ---------
TYPE=Linux
ROOT=/dev/ram0
KERNEL=/boot/rescuecd.vmlinuz
INITRD=/boot/rescuecd.initrd
-------------- następna część ---------
# $Revision:$, $Date:$
Summary:	PLD RescueCD
Name:		rescuecd
Version:	2.90
Release:	1
License:	GPL v2
Group:		Applications/System
%ifarch %{ix86}
Source0:	http://rescuecd.pld-linux.org/download/PLDRescueCD-%{version}/x86/RCDx86_%(echo %{version} | tr -d .).iso
# Source0-md5:	e05fbd740be1f34c434d42da7e04bdce
Source1:	http://rescuecd.pld-linux.org/download/PLDRescueCD-%{version}/x86/rcdmod
# Source1-md5:	7c59799486d3cdf009acc0f5c75fefe4
%endif
%ifarch %{x8664}
Source2:	http://rescuecd.pld-linux.org/download/PLDRescueCD-%{version}/x86_64/RCDx64_%(echo %{version} | tr -d .).iso
# Source2-md5:	e05fbd740be1f34c434d42da7e04bdce
Source3:	http://rescuecd.pld-linux.org/download/PLDRescueCD-%{version}/x86_64/rcdmod
# Source3-md5:	7c59799486d3cdf009acc0f5c75fefe4
%endif
Source4:	%{name}.image
URL:		http://rescuecd.pld-linux.org/
BuildRequires:	/usr/bin/isoinfo
ExclusiveArch:	%{ix86} %{x8664}
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
PLD RescueCD

%package -n rc-boot-image-rescuecd
Summary:	rescuecd image for rc-boot
Summary(pl.UTF-8):	Obraz rescuecd dla rc-boot
Group:		Base
Requires:	%{name} = %{epoch}:%{version}-%{release}
Requires:	rc-boot

%description -n rc-boot-image-rescuecd
rescuecd image for rc-boot.

%description -n rc-boot-image-rescuecd -l pl.UTF-8
Obraz rescuecd dla rc-boot.

%prep

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-boot/images
install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-boot/images/%{name}

install -d $RPM_BUILD_ROOT/boot
%ifarch %{ix86}
isoinfo -R -i %{SOURCE0} -x /rescue.cpi > $RPM_BUILD_ROOT/boot/%{name}.initrd
isoinfo -R -i %{SOURCE0} -x /boot/isolinux/vmlinuz > $RPM_BUILD_ROOT/boot/%{name}.vmlinuz
%endif
%ifarch %{x8664}
isoinfo -R -i %{SOURCE2} -x /rescue.cpi > $RPM_BUILD_ROOT/boot/%{name}.initrd
isoinfo -R -i %{SOURCE2} -x /boot/isolinux/vmlinuz > $RPM_BUILD_ROOT/boot/%{name}.vmlinuz
%endif

install -d $RPM_BUILD_ROOT%{_bindir}
%ifarch %{ix86}
install %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
%endif
%ifarch %{x8664}
install %{SOURCE3} $RPM_BUILD_ROOT/%{_bindir}
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%postun -n rc-boot-image-rescuecd
if [ -x /sbin/rc-boot ]; then
    /sbin/rc-boot 1>&2 || :
fi

%post -n rc-boot-image-rescuecd
if [ -x /sbin/rc-boot ]; then
    /sbin/rc-boot 1>&2 || :
fi

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/rcdmod
/boot/%{name}.initrd
/boot/%{name}.vmlinuz

%files -n rc-boot-image-rescuecd
%defattr(644,root,root,755)
%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-boot/images/%{name}

%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: rc-boot-prefer-PLD.patch
Type: text/x-diff
Size: 556 bytes
Desc: nie znany
Url : /mailman/pipermail/pld-devel-pl/attachments/20080101/f47f68c1/attachment-0002.bin 
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: nie znany
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : /mailman/pipermail/pld-devel-pl/attachments/20080101/f47f68c1/attachment.sig 


Więcej informacji o liście dyskusyjnej pld-devel-pl