Server IP : 3.128.248.115 / Your IP : 3.144.123.24 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ip-172-31-33-233 5.15.0-1037-aws #41~20.04.1-Ubuntu SMP Mon May 22 18:18:00 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /bin/ |
Upload File : |
#!/bin/sh set -e # based on intel-microcode & amd64-microcode initramfs-tools hooks # Copyright (C) 2012-2016 Henrique de Moraes Holschuh <hmh@debian.org> # Copyright (C) 2019 Canonical Ltd # Copyright (C) 2020 Canonical Ltd # Released under the GPL v3 # # Generates a copy of the minimal microcode for all Intel/AMD processors # and installs it to the early initramfs EFWD=$(mktemp -d "/tmp/microcode-initrd_XXXXXXXXXX") EFWCD="${EFWD}/d/kernel/x86/microcode" # note: to build a reproducible early initramfs, we force # the microcode component ordering inside the microcode # firmware file, as well as the timestamp and ordering of # all cpio members. mkdir -p "${EFWCD}" find /lib/firmware/amd-ucode/ -maxdepth 1 -type f -print0 | LC_ALL=C sort -z | xargs -0 -r cat 2>/dev/null >"${EFWCD}/AuthenticAMD.bin" iucode_tool --quiet --write-to="${EFWCD}/GenuineIntel.bin" /lib/firmware/intel-ucode/ find "${EFWD}" -print0 | xargs -0r touch --no-dereference --date="@0" ( cd "${EFWD}/d" ; find . -print0 | LC_ALL=C sort -z | cpio --null --reproducible -R 0:0 -H newc -o --quiet > "${EFWD}/microcode.cpio" ) mv "${EFWD}/microcode.cpio" /boot/ [ -d "${EFWD}" ] && rm -fr "${EFWD}"