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

Dmitry V. Levin ldv at altlinux.org
Mon Jun 21 16:14:05 MSD 2004


On Fri, Jun 18, 2004 at 06:06:16PM +0400, Sergey Vlasov wrote:
> Хорошо, тогда так:
> 
> # 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
> 
> Против этого есть возражения?

Вроде бы нет.  Если скрипты сложнее среднестатистических, то их можно
выносить наружу, см. /usr/sbin/*install_info; про эти я не уверен, что они
сложнее.  Впрочем, install_info тоже не сложнее.


-- 
ldv
-------------- 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/20040621/4af77099/attachment.bin


More information about the devel-kernel mailing list