Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Kernel:SLE15-SP2-EB
kernel-rt_obs
post.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File post.sh of Package kernel-rt_obs
# Flag to trigger /etc/init.d/purge-kernels on next reboot (fate#312018) # ... but avoid the first installion (bsc#1180058) test $1 -gt 1 && touch /boot/do_purge_kernels for x in /boot/@IMAGE@ /boot/initrd; do rm -f $x ln -s ${x##*/}-@KERNELRELEASE@-@FLAVOR@ $x done @USRMERGE@# compat stuff for /boot. @USRMERGE@# if /boot and /usr are not speparate partitions we can just link @USRMERGE@# the kernel there to save space. Otherwise copy. @USRMERGE@if mountpoint -q /boot || mountpoint -q /usr; then @USRMERGE@ copy_or_link="cp -a" @USRMERGE@else @USRMERGE@ copy_or_link="ln -sf" @USRMERGE@fi @USRMERGE@# XXX: need to fix suse-module-tools for sysctl.conf and System.map @USRMERGE@for x in @IMAGE@ sysctl.conf System.map; do @USRMERGE@ if [ ! -e /boot/$x-@KERNELRELEASE@-@FLAVOR@ ]; then @USRMERGE@ $copy_or_link ..@MODULESDIR@/$x /boot/$x-@KERNELRELEASE@-@FLAVOR@ @USRMERGE@ if [ -e @MODULESDIR@/.$x.hmac ]; then @USRMERGE@ $copy_or_link ..@MODULESDIR@/.$x.hmac /boot/.$x-@KERNELRELEASE@-@FLAVOR@.hmac @USRMERGE@ fi @USRMERGE@ fi @USRMERGE@done # carwos specific - there is only one kernel /usr/sbin/depmod -a %kernelrelease-%build_flavor message_install_bl () { echo "You may need to setup and install the boot loader using the" echo "available bootloader for your platform (e.g. grub, lilo, zipl, ...)." } run_bootloader () { # EB branch return 0 if [ -f /etc/sysconfig/bootloader ] && [ -f /boot/grub/menu.lst -o \ -f /etc/lilo.conf -o \ -f /etc/elilo.conf -o \ -f /etc/zipl.conf -o \ -f /etc/default/grub ] then return 0 else return 1 fi } if [ -f /etc/fstab -a ! -e /.buildenv ] ; then # only run the bootloader if the usual bootloader configuration # files are there -- this is different on every architecture initrd=initrd-@KERNELRELEASE@-@FLAVOR@ if [ @FLAVOR@ = rt ]; then default=force-default fi if [ -e /boot/$initrd -o ! -e @MODULESDIR@ ] && \ run_bootloader ; then [ -e /boot/$initrd ] || initrd= if [ -x /usr/lib/bootloader/bootloader_entry ]; then /usr/lib/bootloader/bootloader_entry \ add \ @FLAVOR@ \ @KERNELRELEASE@-@FLAVOR@ \ @IMAGE@-@KERNELRELEASE@-@FLAVOR@ \ $initrd \ $default else message_install_bl fi fi else message_install_bl fi # vim: set sts=4 sw=4 ts=8 noet:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor