// 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
*/
-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"
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
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
EOF
fi
sed "s/^/$submenu_indentation/" << EOF
- initrd ${rel_dirname}/${initrd}
+ initrd $(echo $initrd_path)
EOF
fi
fi
*) 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=
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
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
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
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)
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