Server IP : 127.0.0.2 / Your IP : 18.221.207.166 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh set -e version=4.4.0-1084-aws image_path=/boot/vmlinuz-$version # # When we install linux-image we have to run kernel postinst.d support to # generate the initramfs, create links etc. Should it have an associated # linux-image-extra package and we install that we also need to run kernel # postinst.d, to regenerate the initramfs. If we are installing both at the # same time, we necessarily trigger kernel postinst.d twice. As this includes # rebuilding the initramfs and reconfiguring the boot loader this is very time # consuming. # # Similarly for removal when we remove the linux-image-extra package we need to # run kernel postinst.d handling in order to pare down the initramfs to # linux-image contents only. When we remove the linux-image need to remove the # now redundant initramfs. If we are removing both at the same time, then # we will rebuilt the initramfs and then immediatly remove it. # # Switches to using a trigger against the linux-image package for all # postinst.d and postrm.d handling. On installation postinst.d gets triggered # twice once by linux-image and once by linux-image-extra. As triggers are # non-cumulative we will only run this processing once. When removing both # packages we will trigger postinst.d from linux-image-extra and then in # linux-image postrm.d we effectivly ignore the pending trigger and simply run # the postrm.d. This prevents us from rebuilding the initramfs. # if [ "$1" = triggered ]; then trigger=/usr/lib/linux/triggers/$version if [ -f "$trigger" ]; then sh "$trigger" rm -f "$trigger" fi exit 0 fi if [ "$1" != configure ]; then exit 0 fi depmod $version if [ -f /lib/modules/$version/.fresh-install ]; then change=install else change=upgrade fi linux-update-symlinks $change $version $image_path rm -f /lib/modules/$version/.fresh-install if [ -d /etc/kernel/postinst.d ]; then mkdir -p /usr/lib/linux/triggers cat - >/usr/lib/linux/triggers/$version <<EOF DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \ --arg=$image_path /etc/kernel/postinst.d EOF dpkg-trigger --no-await linux-update-$version fi exit 0