[d-kernel] [RFC] new macros for kernel-build-tools

Sergey Vlasov vsu at altlinux.ru
Fri Jun 18 18:06:16 MSD 2004


On Fri, Jun 18, 2004 at 02:35:42PM +0400, Dmitry V. Levin wrote:
> On Thu, Jun 17, 2004 at 07:13:07PM +0400, Sergey Vlasov wrote:
> > Hello!
> > 
> > Предлагается добавить в kernel-build-tools следующие макросы:
> > 
> > =======================================================================
> > # Standard %%post script for kernel-image-* packages
> > %post_kernel_image() \
> > /sbin/installkernel %1 \
> > %nil
> 
> Просьба не использовать макросы-функции без необходимости.
> 
> Например,
> %post_kernel_image	/sbin/installkernel
> выглядит проще и понятней.

Хорошо, тогда так:

# Standard %%post script for kernel-image-* packages
%post_kernel_image	/sbin/installkernel

# Standard %%preun script for kernel-image-* packages
%preun_kernel_image	/sbin/modprobe loop > /dev/null 2>&1 ||: \
/sbin/installkernel --remove

# Standard %%post script for kernel-headers-* packages
%post_kernel_headers 	[ -x %_sbindir/adjust_kernel_headers ] && %_sbindir/adjust_kernel_headers ||:

# Standard %%postun script for kernel-headers-* packages
%postun_kernel_headers	[ -x %_sbindir/adjust_kernel_headers ] && %_sbindir/adjust_kernel_headers ||:

# Standard %%post script for kernel-modules-* packages
%post_kernel_modules()		[ -n "$DURING_INSTALL" ] || \
/sbin/depmod -a -F /boot/System.map-%1 %1 \
%nil

# Standard %%postun script for kernel-modules-* packages
%postun_kernel_modules()	[ -n "$DURING_INSTALL" ] || \
[ ! -f /boot/System.map-%1 ] || \
/sbin/depmod -a -F /boot/System.map-%1 %1 \
%nil


Против этого есть возражения?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.altlinux.ru/pipermail/devel-kernel/attachments/20040618/929fa10f/attachment.bin


More information about the devel-kernel mailing list