committing changes in /etc made by "-bash"
Package changes:
This commit is contained in:
@@ -19,6 +19,7 @@ mkdir -p './crypto-policies/policies/modules'
|
||||
mkdir -p './cxs/newusers'
|
||||
mkdir -p './dbus-1/session.d'
|
||||
mkdir -p './debuginfod'
|
||||
mkdir -p './dkms/framework.conf.d'
|
||||
mkdir -p './dnf/aliases.d'
|
||||
mkdir -p './dnf/modules.defaults.d'
|
||||
mkdir -p './dnf/plugins/copr.d'
|
||||
@@ -38,8 +39,6 @@ mkdir -p './incron.d'
|
||||
mkdir -p './java/security/security.d'
|
||||
mkdir -p './jvm'
|
||||
mkdir -p './jvm-commmon'
|
||||
mkdir -p './kernel/postinst.d'
|
||||
mkdir -p './kernel/prerm.d'
|
||||
mkdir -p './keyutils'
|
||||
mkdir -p './letsencrypt/renewal-hooks/deploy'
|
||||
mkdir -p './letsencrypt/renewal-hooks/post'
|
||||
@@ -490,6 +489,9 @@ maybe chmod 0750 'dhcp'
|
||||
maybe chmod 0644 'dhcp/dhclient.conf'
|
||||
maybe chmod 0755 'dhcp/dhclient.d'
|
||||
maybe chmod 0755 'dhcp/dhclient.d/chrony.sh'
|
||||
maybe chmod 0755 'dkms'
|
||||
maybe chmod 0644 'dkms/framework.conf'
|
||||
maybe chmod 0755 'dkms/framework.conf.d'
|
||||
maybe chmod 0755 'dnf'
|
||||
maybe chmod 0755 'dnf/aliases.d'
|
||||
maybe chmod 0644 'dnf/dnf.conf'
|
||||
@@ -1015,8 +1017,11 @@ maybe chmod 0755 'kernel'
|
||||
maybe chmod 0755 'kernel/install.d'
|
||||
maybe chmod 0644 'kernel/install.d/20-grubby.install'
|
||||
maybe chmod 0644 'kernel/install.d/90-loaderentry.install'
|
||||
maybe chmod 0755 'kernel/install.d/dkms'
|
||||
maybe chmod 0755 'kernel/postinst.d'
|
||||
maybe chmod 0755 'kernel/postinst.d/dkms'
|
||||
maybe chmod 0755 'kernel/prerm.d'
|
||||
maybe chmod 0755 'kernel/prerm.d/dkms'
|
||||
maybe chmod 0755 'keyutils'
|
||||
maybe chmod 0644 'krb5.conf'
|
||||
maybe chmod 0755 'krb5.conf.d'
|
||||
|
||||
36
dkms/framework.conf
Normal file
36
dkms/framework.conf
Normal file
@@ -0,0 +1,36 @@
|
||||
# This configuration file modifies the behavior of DKMS (Dynamic Kernel Module
|
||||
# Support) and is sourced in by DKMS every time it is run.
|
||||
|
||||
# Source Tree Location (default: /usr/src):
|
||||
# source_tree="/usr/src"
|
||||
|
||||
# DKMS Tree Location (default: /var/lib/dkms):
|
||||
# dkms_tree="/var/lib/dkms"
|
||||
|
||||
# Install Tree Location (default: /lib/modules):
|
||||
# install_tree="/lib/modules"
|
||||
|
||||
# Temporary folder Location (default: /tmp):
|
||||
# tmp_location="/tmp"
|
||||
|
||||
# Verbosity setting, will be active if set to a non-null value:
|
||||
# verbose=""
|
||||
|
||||
# This creates symlinks from the install_tree into the dkms_tree instead of
|
||||
# copying the modules. This preserves some space on the costs of being less
|
||||
# safe. Symlinking will be active if set to a non-null value:
|
||||
# symlink_modules=""
|
||||
|
||||
# Automatic installation and upgrade for all installed kernels if set to a
|
||||
# non-null value:
|
||||
# autoinstall_all_kernels=""
|
||||
|
||||
# Location of the sign-file kernel binary (default: depends on distributioin):
|
||||
# sign_file="/path/to/sign-file"
|
||||
|
||||
# Location of the key and certificate used for Secure boot (default: /var/lib/dkms):
|
||||
# mok_signing_key: /var/lib/dkms/mok.key
|
||||
# mok_certificate: /var/lib/dkms/mok.pub
|
||||
|
||||
# Automatically modprobe the built modules upon succesful installation:
|
||||
modprobe_on_install="true"
|
||||
9
kernel/install.d/dkms
Executable file
9
kernel/install.d/dkms
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$1" = "add" ]; then
|
||||
/etc/kernel/postinst.d/dkms "$2"
|
||||
fi
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
/etc/kernel/prerm.d/dkms "$2"
|
||||
fi
|
||||
44
kernel/postinst.d/dkms
Executable file
44
kernel/postinst.d/dkms
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
# We're passed the version of the kernel being installed
|
||||
inst_kern=$1
|
||||
|
||||
uname_s=$(uname -s)
|
||||
|
||||
_get_kernel_dir() {
|
||||
KVER=$1
|
||||
case ${uname_s} in
|
||||
Linux) DIR="/lib/modules/$KVER/build" ;;
|
||||
GNU/kFreeBSD) DIR="/usr/src/kfreebsd-headers-$KVER/sys" ;;
|
||||
esac
|
||||
echo "$DIR"
|
||||
}
|
||||
|
||||
_check_kernel_dir() {
|
||||
DIR=$(_get_kernel_dir "$1")
|
||||
case ${uname_s} in
|
||||
Linux) test -e "$DIR/include" ;;
|
||||
GNU/kFreeBSD) test -e "$DIR/kern" && test -e "$DIR/conf/kmod.mk" ;;
|
||||
*) false ;;
|
||||
esac
|
||||
}
|
||||
|
||||
case "${uname_s}" in
|
||||
Linux)
|
||||
header_pkg="linux-headers-$inst_kern"
|
||||
kernel="Linux"
|
||||
;;
|
||||
GNU/kFreeBSD)
|
||||
header_pkg="kfreebsd-headers-$inst_kern"
|
||||
kernel="kFreeBSD"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -x /usr/lib/dkms/dkms_autoinstaller ]; then
|
||||
exec /usr/lib/dkms/dkms_autoinstaller start "$inst_kern"
|
||||
fi
|
||||
|
||||
if ! _check_kernel_dir "$inst_kern" ; then
|
||||
echo "dkms: WARNING: $kernel headers are missing, which may explain the above failures." >&2
|
||||
echo " please install the $header_pkg package to fix this." >&2
|
||||
fi
|
||||
18
kernel/prerm.d/dkms
Executable file
18
kernel/prerm.d/dkms
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# We're passed the version of the kernel being removed
|
||||
inst_kern=$1
|
||||
|
||||
if command -v dkms > /dev/null; then
|
||||
dkms status -k "$inst_kern" 2>/dev/null | while IFS=",:/ " read -r name vers _ arch status; do
|
||||
[ "$status" = "installed" ] || continue
|
||||
echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
|
||||
dkms remove -m "$name" -v "$vers" -k "$inst_kern" -a "$arch"
|
||||
done
|
||||
fi
|
||||
|
||||
rmdir --ignore-fail-on-non-empty \
|
||||
"/lib/modules/$inst_kern/updates/dkms" \
|
||||
"/lib/modules/$inst_kern/updates" 2>/dev/null
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user