From 55adca71467764d2f6ab3b53d8e66e794afb0a33 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 1 Sep 2020 12:54:33 +0200 Subject: [PATCH] committing changes in /etc made by "/usr/bin/apt full-upgrade -y" Package changes: -alsa-ucm-conf 1.2.2-1ubuntu0.1 all +alsa-ucm-conf 1.2.2-1ubuntu0.2 all -grub-common 2.04-1ubuntu26.2 amd64 +grub-common 2.04-1ubuntu26.3 amd64 -grub-pc 2.04-1ubuntu26.2 amd64 -grub-pc-bin 2.04-1ubuntu26.2 amd64 -grub2-common 2.04-1ubuntu26.2 amd64 +grub-pc 2.04-1ubuntu26.3 amd64 +grub-pc-bin 2.04-1ubuntu26.3 amd64 +grub2-common 2.04-1ubuntu26.3 amd64 -libasound2 1.2.2-2.1ubuntu1 amd64 -libasound2-data 1.2.2-2.1ubuntu1 all +libasound2 1.2.2-2.1ubuntu2 amd64 +libasound2-data 1.2.2-2.1ubuntu2 all -libatopology2 1.2.2-2.1ubuntu1 amd64 +libatopology2 1.2.2-2.1ubuntu2 amd64 -libnvpair1linux 0.8.3-1ubuntu12.3 amd64 +libnvpair1linux 0.8.3-1ubuntu12.4 amd64 -libpam-modules 1.3.1-5ubuntu4 amd64 -libpam-modules-bin 1.3.1-5ubuntu4 amd64 -libpam-runtime 1.3.1-5ubuntu4 all +libpam-modules 1.3.1-5ubuntu4.1 amd64 +libpam-modules-bin 1.3.1-5ubuntu4.1 amd64 +libpam-runtime 1.3.1-5ubuntu4.1 all -libpam0g 1.3.1-5ubuntu4 amd64 +libpam0g 1.3.1-5ubuntu4.1 amd64 -libpulse-mainloop-glib0 1:13.99.1-1ubuntu3.5 amd64 -libpulse0 1:13.99.1-1ubuntu3.5 amd64 -libpulsedsp 1:13.99.1-1ubuntu3.5 amd64 +libpulse-mainloop-glib0 1:13.99.1-1ubuntu3.6 amd64 +libpulse0 1:13.99.1-1ubuntu3.6 amd64 +libpulsedsp 1:13.99.1-1ubuntu3.6 amd64 -libuutil1linux 0.8.3-1ubuntu12.3 amd64 +libuutil1linux 0.8.3-1ubuntu12.4 amd64 -libzfs2linux 0.8.3-1ubuntu12.3 amd64 +libzfs2linux 0.8.3-1ubuntu12.4 amd64 -libzpool2linux 0.8.3-1ubuntu12.3 amd64 +libzpool2linux 0.8.3-1ubuntu12.4 amd64 -linux-firmware 1.187.2 all -linux-generic 5.4.0.42.46 amd64 +linux-firmware 1.187.3 all +linux-generic 5.4.0.45.49 amd64 -linux-headers-generic 5.4.0.42.46 amd64 +linux-headers-5.4.0-45 5.4.0-45.49 all +linux-headers-5.4.0-45-generic 5.4.0-45.49 amd64 +linux-headers-generic 5.4.0.45.49 amd64 -linux-image-generic 5.4.0.42.46 amd64 +linux-image-5.4.0-45-generic 5.4.0-45.49 amd64 +linux-image-generic 5.4.0.45.49 amd64 -linux-libc-dev 5.4.0-42.46 amd64 +linux-libc-dev 5.4.0-45.49 amd64 +linux-modules-5.4.0-45-generic 5.4.0-45.49 amd64 +linux-modules-extra-5.4.0-45-generic 5.4.0-45.49 amd64 -pulseaudio 1:13.99.1-1ubuntu3.5 amd64 -pulseaudio-equalizer 1:13.99.1-1ubuntu3.5 amd64 -pulseaudio-module-bluetooth 1:13.99.1-1ubuntu3.5 amd64 -pulseaudio-utils 1:13.99.1-1ubuntu3.5 amd64 +pulseaudio 1:13.99.1-1ubuntu3.6 amd64 +pulseaudio-equalizer 1:13.99.1-1ubuntu3.6 amd64 +pulseaudio-module-bluetooth 1:13.99.1-1ubuntu3.6 amd64 +pulseaudio-utils 1:13.99.1-1ubuntu3.6 amd64 -zfs-zed 0.8.3-1ubuntu12.3 amd64 -zfsutils-linux 0.8.3-1ubuntu12.3 amd64 +zfs-zed 0.8.3-1ubuntu12.4 amd64 +zfsutils-linux 0.8.3-1ubuntu12.4 amd64 --- apt/apt.conf.d/01autoremove-kernels | 39 ++++++++++++++--------------- environment | 2 +- grub.d/10_linux | 29 +++++++++++++++------ grub.d/10_linux_zfs | 37 ++++++++++++++++----------- 4 files changed, 65 insertions(+), 42 deletions(-) diff --git a/apt/apt.conf.d/01autoremove-kernels b/apt/apt.conf.d/01autoremove-kernels index b5eeb7e..86e0b75 100644 --- a/apt/apt.conf.d/01autoremove-kernels +++ b/apt/apt.conf.d/01autoremove-kernels @@ -1,44 +1,43 @@ // DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal APT::NeverAutoRemove { - "^linux-.*-5\.3\.0-62-generic$"; "^linux-.*-5\.4\.0-42-generic$"; - "^kfreebsd-.*-5\.3\.0-62-generic$"; + "^linux-.*-5\.4\.0-45-generic$"; "^kfreebsd-.*-5\.4\.0-42-generic$"; - "^gnumach-.*-5\.3\.0-62-generic$"; + "^kfreebsd-.*-5\.4\.0-45-generic$"; "^gnumach-.*-5\.4\.0-42-generic$"; - "^.*-modules-5\.3\.0-62-generic$"; + "^gnumach-.*-5\.4\.0-45-generic$"; "^.*-modules-5\.4\.0-42-generic$"; - "^.*-kernel-5\.3\.0-62-generic$"; + "^.*-modules-5\.4\.0-45-generic$"; "^.*-kernel-5\.4\.0-42-generic$"; + "^.*-kernel-5\.4\.0-45-generic$"; }; /* Debug information: # dpkg list: -ii linux-image-5.0.0-32-generic 5.0.0-32.34~18.04.2 amd64 Signed kernel image generic -rc linux-image-5.3.0-51-generic 5.3.0-51.44~18.04.2 amd64 Signed kernel image generic -ii linux-image-5.3.0-61-generic 5.3.0-61.55~18.04.1 amd64 Signed kernel image generic -ii linux-image-5.3.0-62-generic 5.3.0-62.56~18.04.1 amd64 Signed kernel image generic -iF linux-image-5.4.0-42-generic 5.4.0-42.46 amd64 Signed kernel image generic -ii linux-image-generic 5.4.0.42.45 amd64 Generic Linux kernel image -ii linux-image-generic-hwe-18.04 5.4.0.42.45 amd64 Generic Linux kernel image (dummy transitional package) +ii linux-image-5.0.0-32-generic 5.0.0-32.34~18.04.2 amd64 Signed kernel image generic +rc linux-image-5.3.0-51-generic 5.3.0-51.44~18.04.2 amd64 Signed kernel image generic +ii linux-image-5.3.0-62-generic 5.3.0-62.56~18.04.1 amd64 Signed kernel image generic +ii linux-image-5.4.0-42-generic 5.4.0-42.46 amd64 Signed kernel image generic +iF linux-image-5.4.0-45-generic 5.4.0-45.49 amd64 Signed kernel image generic +ii linux-image-generic 5.4.0.45.49 amd64 Generic Linux kernel image # list of installed kernel packages: 5.0.0-32-generic 5.0.0-32.34~18.04.2 -5.3.0-61-generic 5.3.0-61.55~18.04.1 5.3.0-62-generic 5.3.0-62.56~18.04.1 5.4.0-42-generic 5.4.0-42.46 +5.4.0-45-generic 5.4.0-45.49 # list of different kernel versions: +5.4.0-45.49 5.4.0-42.46 5.3.0-62.56~18.04.1 -5.3.0-61.55~18.04.1 5.0.0-32.34~18.04.2 -# Installing kernel: 5.4.0-42.46 (5.4.0-42-generic) -# Running kernel: 5.3.0-62.56~18.04.1 (5.3.0-62-generic) -# Last kernel: 5.4.0-42.46 -# Previous kernel: 5.3.0-62.56~18.04.1 +# Installing kernel: 5.4.0-45.49 (5.4.0-45-generic) +# Running kernel: 5.4.0-42.46 (5.4.0-42-generic) +# Last kernel: 5.4.0-45.49 +# Previous kernel: 5.4.0-42.46 # Kernel versions list to keep: -5.3.0-62.56~18.04.1 5.4.0-42.46 +5.4.0-45.49 # Kernel packages (version part) to protect: -5\.3\.0-62-generic 5\.4\.0-42-generic +5\.4\.0-45-generic */ diff --git a/environment b/environment index 048769c..a565d9d 100644 --- a/environment +++ b/environment @@ -1 +1 @@ -PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" +PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" diff --git a/grub.d/10_linux b/grub.d/10_linux index a98e2b0..5a43f0c 100755 --- a/grub.d/10_linux +++ b/grub.d/10_linux @@ -245,6 +245,14 @@ EOF linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}" fi message="$(gettext_printf "Loading initial ramdisk ...")" + initrd_path= + for i in ${initrd}; do + initrd_path="${initrd_path} ${rel_dirname}/${i}" + done + initrd_path_only_early= + for i in ${initrd_early}; do + initrd_path_only_early="${initrd_path_only_early} ${rel_dirname}/${i}" + done if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then sed "s/^/$submenu_indentation/" << EOF if [ "\${initrdfail}" = 1 ]; then @@ -255,11 +263,17 @@ EOF echo '$(echo "$message" | grub_quote)' EOF fi - sed "s/^/$submenu_indentation/" << EOF - initrd ${rel_dirname}/${initrd} + initrd $(echo $initrd_path) else linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1 +EOF + if [ -n "$initrd_path_only_early" ]; then + sed "s/^/$submenu_indentation/" << EOF + initrd $(echo $initrd_path_only_early) +EOF + fi + sed "s/^/$submenu_indentation/" << EOF fi initrdfail EOF @@ -277,7 +291,7 @@ EOF EOF fi sed "s/^/$submenu_indentation/" << EOF - initrd ${rel_dirname}/${initrd} + initrd $(echo $initrd_path) EOF fi fi @@ -320,6 +334,10 @@ case "$machine" in *) GENKERNEL_ARCH="$machine" ;; esac +case "$GENKERNEL_ARCH" in + x86*) GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY dis_ucode_ldr";; +esac + prepare_boot_cache= prepare_root_cache= boot_device_id= @@ -418,10 +436,7 @@ while [ "x$list" != "x" ] ; do initrd= if test -n "${initrd_early}" || test -n "${initrd_real}"; then - initrd="${initrd_real}" - if test -n "${initrd_early}"; then - initrd="${initrd_early} ${initrd}" - fi + initrd="${initrd_early} ${initrd_real}" initrd_display= for i in ${initrd}; do diff --git a/grub.d/10_linux_zfs b/grub.d/10_linux_zfs index ae93c40..4efb681 100755 --- a/grub.d/10_linux_zfs +++ b/grub.d/10_linux_zfs @@ -41,6 +41,16 @@ imported_pools="" MNTDIR="$(mktemp -d ${TMPDIR:-/tmp}/zfsmnt.XXXXXX)" ZFSTMP="$(mktemp -d ${TMPDIR:-/tmp}/zfstmp.XXXXXX)" + +machine="$(uname -m)" +case "${machine}" in + i?86) GENKERNEL_ARCH="x86" ;; + mips|mips64) GENKERNEL_ARCH="mips" ;; + mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;; + arm*) GENKERNEL_ARCH="arm" ;; + *) GENKERNEL_ARCH="${machine}" ;; +esac + RC=0 on_exit() { # Restore initial zpool import state @@ -407,18 +417,12 @@ get_dataset_info() { return fi - machine="$(uname -m)" - case "${machine}" in - i?86) GENKERNEL_ARCH="x86" ;; - mips|mips64) GENKERNEL_ARCH="mips" ;; - mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;; - arm*) GENKERNEL_ARCH="arm" ;; - *) GENKERNEL_ARCH="${machine}" ;; - esac - initrd_list="" kernel_list="" - for linux in $(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*'|sort -V); do + list=$(find "${boot_dir}" -maxdepth 1 -type f -regex '.*/\(vmlinuz\|vmlinux\|kernel\)-.*') + while [ "x$list" != "x" ] ; do + linux=`version_find_latest $list` + list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '` if ! grub_file_is_not_garbage "${linux}" ; then continue fi @@ -465,12 +469,12 @@ get_dataset_info() { rel_linux_dirname=$(make_system_path_relative_to_its_root "${linux_dirname}") - initrd_list="${rel_linux_dirname}/${initrd}|${initrd_list}" - kernel_list="${rel_linux_dirname}/${linux_basename}|${kernel_list}" + initrd_list="${initrd_list}|${rel_linux_dirname}/${initrd}" + kernel_list="${kernel_list}|${rel_linux_dirname}/${linux_basename}" done - initrd_list="${initrd_list%|}" - kernel_list="${kernel_list%|}" + initrd_list="${initrd_list#|}" + kernel_list="${kernel_list#|}" initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1) @@ -904,6 +908,11 @@ generate_grub_menu() { GRUB_CMDLINE_LINUX_RECOVERY="${GRUB_CMDLINE_LINUX_RECOVERY} nomodeset" fi + case "$GENKERNEL_ARCH" in + x86*) GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY dis_ucode_ldr";; + esac + + if [ "${vt_handoff}" = 1 ]; then for word in ${GRUB_CMDLINE_LINUX_DEFAULT}; do if [ "${word}" = splash ]; then -- 2.39.5