File manager - Edit - /home/c14075/dragmet-ural.ru/www/kernel.tar
Back
postrm.d/zz-update-grub 0000755 00000001206 15103474271 0011123 0 ustar 00 #! /bin/sh set -e command -v update-grub >/dev/null || exit 0 if type systemd-detect-virt >/dev/null 2>&1 && systemd-detect-virt --quiet --container; then exit 0 fi set -- $DEB_MAINT_PARAMS mode="${1#\'}" mode="${mode%\'}" case $0:$mode in # Only run on postinst configure and postrm remove, to avoid wasting # time by calling update-grub multiple times on upgrade and removal. # Also run if we have no DEB_MAINT_PARAMS, in order to work with old # kernel packages. */postinst.d/*:|*/postinst.d/*:configure|*/postrm.d/*:|*/postrm.d/*:remove) if [ -e /boot/grub/grub.cfg ]; then exec update-grub fi ;; esac exit 0 postrm.d/initramfs-tools 0000755 00000001460 15103474271 0011377 0 ustar 00 #!/bin/sh -e version="$1" bootopt="" [ -x /usr/sbin/update-initramfs ] || exit 0 # passing the kernel version is required if [ -z "${version}" ]; then echo >&2 "W: initramfs-tools: ${DPKG_MAINTSCRIPT_PACKAGE:-kernel package} did not pass a version number" exit 0 fi # exit if custom kernel does not need an initramfs if [ "$INITRD" = 'No' ]; then exit 0 fi # absolute file name of kernel image may be passed as a second argument; # create the initrd in the same directory if [ -n "$2" ]; then bootdir=$(dirname "$2") bootopt="-b ${bootdir}" fi # avoid running multiple times if [ -n "$DEB_MAINT_PARAMS" ]; then eval set -- "$DEB_MAINT_PARAMS" if [ -z "$1" ] || [ "$1" != "remove" ]; then exit 0 fi fi # delete initramfs # shellcheck disable=SC2086 update-initramfs -d -k "${version}" ${bootopt} >&2 postinst.d/zz-update-grub 0000755 00000001206 15103474271 0011462 0 ustar 00 #! /bin/sh set -e command -v update-grub >/dev/null || exit 0 if type systemd-detect-virt >/dev/null 2>&1 && systemd-detect-virt --quiet --container; then exit 0 fi set -- $DEB_MAINT_PARAMS mode="${1#\'}" mode="${mode%\'}" case $0:$mode in # Only run on postinst configure and postrm remove, to avoid wasting # time by calling update-grub multiple times on upgrade and removal. # Also run if we have no DEB_MAINT_PARAMS, in order to work with old # kernel packages. */postinst.d/*:|*/postinst.d/*:configure|*/postrm.d/*:|*/postrm.d/*:remove) if [ -e /boot/grub/grub.cfg ]; then exec update-grub fi ;; esac exit 0 postinst.d/apt-auto-removal 0000755 00000000632 15103474271 0012001 0 ustar 00 #!/bin/sh set -e eval $(apt-config shell APT_CONF_D Dir::Etc::parts/d) test -n "${APT_CONF_D}" || APT_CONF_D="/etc/apt/apt.conf.d" config_file="${APT_CONF_D}/01autoremove-kernels" generateconfig() { cat <<EOF // DO NOT EDIT! File autogenerated by $0 APT::LastInstalledKernel "$1"; EOF } generateconfig "$@" > "${config_file}.dpkg-new" mv -f "${config_file}.dpkg-new" "$config_file" chmod 444 "$config_file" postinst.d/initramfs-tools 0000755 00000001537 15103474271 0011743 0 ustar 00 #!/bin/sh -e version="$1" bootopt="" command -v update-initramfs >/dev/null 2>&1 || exit 0 # passing the kernel version is required if [ -z "${version}" ]; then echo >&2 "W: initramfs-tools: ${DPKG_MAINTSCRIPT_PACKAGE:-kernel package} did not pass a version number" exit 2 fi # exit if kernel does not need an initramfs if [ "$INITRD" = 'No' ]; then exit 0 fi # absolute file name of kernel image may be passed as a second argument; # create the initrd in the same directory if [ -n "$2" ]; then bootdir=$(dirname "$2") bootopt="-b ${bootdir}" fi # avoid running multiple times if [ -n "$DEB_MAINT_PARAMS" ]; then eval set -- "$DEB_MAINT_PARAMS" if [ -z "$1" ] || [ "$1" != "configure" ]; then exit 0 fi fi # we're good - create initramfs. update runs do_bootloader # shellcheck disable=SC2086 update-initramfs -c -k "${version}" ${bootopt} >&2 install.d/85-initrd.install 0000755 00000001751 15135052624 0011561 0 ustar 00 #!/bin/sh set -eu # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh COMMAND="$1" KERNEL_VERSION="$2" BOOT_DIR_ABS="$3" INITRD_SRC="/boot/initrd.img-$KERNEL_VERSION" INITRD_DEST="$BOOT_DIR_ABS/initrd" if [ "$COMMAND" = remove ]; then exec rm -f "$INITRD_DEST" fi if [ "$COMMAND" != add ]; then echo "Invalid command $COMMAND" >&2 exit 1 fi if [ "$#" -ge 5 ]; then # An explicit initrd path was passed, 90-loaderentry.install knows how to handle this; # copying here would just duplicate the file, since the basename is very likely different exit 0 fi if [ -e "$INITRD_SRC" ]; then [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "Installing '$INITRD_SRC' as '$INITRD_DEST'" install -m 0644 -o root -g root "$INITRD_SRC" "$INITRD_DEST" || { echo "Could not copy '$INITRD_SRC' to '$INITRD_DEST'." >&2 exit 1 } else echo "$INITRD_SRC does not exist, not installing an initrd" fi exit 0 install.d/00-entry-directory.install 0000755 00000001354 15135052624 0013415 0 ustar 00 #!/usr/bin/env bash # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh COMMAND="$1" KERNEL_VERSION="$2" ENTRY_DIR_ABS="$3" KERNEL_IMAGE="$4" INITRD_OPTIONS_START="5" if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then exit 0 fi if [[ $COMMAND != add ]]; then exit 0 fi # If the boot dir exists (e.g. $ESP/<machine-id>), # create the entry directory ($ESP/<machine-id>/<kernel-version>). # This is the only function of this plugin. MACHINE_ID_DIR="${ENTRY_DIR_ABS%/*}" if ! [ -d "$MACHINE_ID_DIR" ]; then exit 0 fi if [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ]; then echo "+mkdir -v -p $ENTRY_DIR_ABS" exec mkdir -v -p "$ENTRY_DIR_ABS" else exec mkdir -p "$ENTRY_DIR_ABS" fi install.d/90-loaderentry.install 0000755 00000006714 15135052624 0012620 0 ustar 00 #!/usr/bin/env bash # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh COMMAND="$1" KERNEL_VERSION="$2" ENTRY_DIR_ABS="$3" KERNEL_IMAGE="$4" INITRD_OPTIONS_START="5" if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then exit 0 fi if ! [[ -d "$ENTRY_DIR_ABS" ]]; then exit 0 fi MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID BOOT_ROOT=${ENTRY_DIR_ABS%/$MACHINE_ID/$KERNEL_VERSION} BOOT_MNT=$(stat -c %m $BOOT_ROOT) ENTRY_DIR=${ENTRY_DIR_ABS#$BOOT_MNT} if [[ $COMMAND == remove ]]; then rm -f "$BOOT_ROOT/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf" rm -f "$BOOT_ROOT/loader/entries/$MACHINE_ID-$KERNEL_VERSION+"*".conf" exit 0 fi if ! [[ $COMMAND == add ]]; then exit 1 fi if ! [[ $KERNEL_IMAGE ]]; then exit 1 fi if [[ -f /etc/os-release ]]; then . /etc/os-release elif [[ -f /usr/lib/os-release ]]; then . /usr/lib/os-release fi if ! [[ $PRETTY_NAME ]]; then PRETTY_NAME="Linux $KERNEL_VERSION" fi if [[ -f /etc/kernel/cmdline ]]; then read -r -d '' -a BOOT_OPTIONS < /etc/kernel/cmdline elif [[ -f /usr/lib/kernel/cmdline ]]; then read -r -d '' -a BOOT_OPTIONS < /usr/lib/kernel/cmdline else declare -a BOOT_OPTIONS read -r -d '' -a line < /proc/cmdline for i in "${line[@]}"; do [[ "${i#initrd=*}" != "$i" ]] && continue [[ "${i#BOOT_IMAGE=*}" != "$i" ]] && continue BOOT_OPTIONS+=("$i") done fi if [[ -f /etc/kernel/tries ]]; then read -r TRIES </etc/kernel/tries if ! [[ "$TRIES" =~ ^[0-9]+$ ]] ; then echo "/etc/kernel/tries does not contain an integer." >&2 exit 1 fi LOADER_ENTRY="$BOOT_ROOT/loader/entries/$MACHINE_ID-$KERNEL_VERSION+$TRIES.conf" else LOADER_ENTRY="$BOOT_ROOT/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf" fi cp "$KERNEL_IMAGE" "$ENTRY_DIR_ABS/linux" && chown root:root "$ENTRY_DIR_ABS/linux" && chmod 0644 "$ENTRY_DIR_ABS/linux" || { echo "Could not copy '$KERNEL_IMAGE to '$ENTRY_DIR_ABS/linux'." >&2 exit 1 } INITRD_OPTIONS=( "${@:${INITRD_OPTIONS_START}}" ) for initrd in "${INITRD_OPTIONS[@]}"; do if [[ -f "${initrd}" ]]; then initrd_basename="$(basename ${initrd})" [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \ echo "Installing $ENTRY_DIR_ABS/${initrd_basename}" cp "${initrd}" "$ENTRY_DIR_ABS/${initrd_basename}" && chown root:root "$ENTRY_DIR_ABS/${initrd_basename}" && chmod 0644 "$ENTRY_DIR_ABS/${initrd_basename}" || { echo "Could not copy '${initrd}' to '$ENTRY_DIR_ABS/${initrd_basename}'." >&2 exit 1 } fi done # If no initrd option is supplied, fall back to "initrd" which is # the name used by dracut when generating it in its kernel-install hook [[ ${#INITRD_OPTIONS[@]} == 0 ]] && INITRD_OPTIONS=( initrd ) mkdir -p "${LOADER_ENTRY%/*}" || { echo "Could not create loader entry directory '${LOADER_ENTRY%/*}'." >&2 exit 1 } [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \ echo "Creating $LOADER_ENTRY" { echo "title $PRETTY_NAME" echo "version $KERNEL_VERSION" echo "machine-id $MACHINE_ID" echo "options ${BOOT_OPTIONS[*]}" echo "linux $ENTRY_DIR/linux" for initrd in "${INITRD_OPTIONS[@]}"; do [[ -f $ENTRY_DIR_ABS/$(basename ${initrd}) ]] && \ echo "initrd $ENTRY_DIR/$(basename ${initrd})" done : } > "$LOADER_ENTRY" || { echo "Could not create loader entry '$LOADER_ENTRY'." >&2 exit 1 } exit 0 install.d/50-depmod.install 0000755 00000001501 15135052624 0011521 0 ustar 00 #!/usr/bin/env bash # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh COMMAND="$1" KERNEL_VERSION="$2" ENTRY_DIR_ABS="$3" KERNEL_IMAGE="$4" INITRD_OPTIONS_START="5" [[ $KERNEL_VERSION ]] || exit 1 case "$COMMAND" in add) [[ -d "/lib/modules/${KERNEL_VERSION}/kernel" ]] || exit 0 [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \ echo "Running depmod -a ${KERNEL_VERSION}" exec depmod -a "${KERNEL_VERSION}" ;; remove) [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \ echo "Removing /lib/modules/${KERNEL_VERSION}/modules.dep and associated files" exec rm -f /lib/modules/"${KERNEL_VERSION}"/modules.{alias{,.bin},builtin.bin,dep{,.bin},devname,softdep,symbols{,.bin}} ;; *) exit 0 esac
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings