From ef597bdf71f8a1e914a354f78f2e9b7fcca28450 Mon Sep 17 00:00:00 2001 From: Date Huang Date: Thu, 4 Mar 2021 22:31:24 +0800 Subject: [PATCH] curthooks: fix arm64 will install flash-kernel unexpected in Recommended package Apt will install Recommended package by default. It will cause fatal error when there is no any initrd.img be created while fresh installation. Signed-off-by: Date Huang --- curtin/commands/curthooks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/curtin/commands/curthooks.py b/curtin/commands/curthooks.py index eaeb9c4c..3c00b94f 100644 --- a/curtin/commands/curthooks.py +++ b/curtin/commands/curthooks.py @@ -370,7 +370,8 @@ def install_kernel(cfg, target): distro.install_packages(fk_packages.split(), target=target) if kernel_package: - distro.install_packages([kernel_package], target=target) + distro.install_packages([kernel_package], target=target, + opts=["--no-install-recommends"]) return # uname[2] is kernel name (ie: 3.16.0-7-generic) -- 2.25.1