From 667b4d77b05b690e6ba5af1c2207687986c32f48 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Wed, 8 Apr 2026 11:06:59 +0100 Subject: [PATCH] build_image_util: Drop unused emerge_to_image_unchecked function Signed-off-by: James Le Cuirot --- build_library/build_image_util.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/build_library/build_image_util.sh b/build_library/build_image_util.sh index 4c179b3399..5769b64339 100755 --- a/build_library/build_image_util.sh +++ b/build_library/build_image_util.sh @@ -166,26 +166,6 @@ emerge_to_image() { test_image_content "${root_fs_dir}" } -# emerge_to_image without a rootfs check; you should use emerge_to_image unless -# here's a good reason not to. -emerge_to_image_unchecked() { - local root_fs_dir="$1"; shift - - if [[ ${FLAGS_getbinpkg} -eq ${FLAGS_TRUE} ]]; then - set -- --getbinpkg "$@" - fi - - sudo -E ROOT="${root_fs_dir}" \ - PORTAGE_CONFIGROOT="${BUILD_DIR}"/configroot \ - emerge --usepkgonly --jobs="${NUM_JOBS}" --verbose "$@" - - # Shortcut if this was just baselayout - [[ "$*" == *sys-apps/baselayout ]] && return - - # Make sure profile.env has been generated - sudo -E ROOT="${root_fs_dir}" env-update --no-ldconfig -} - # Switch to the dev or prod sub-profile set_image_profile() { local suffix="$1"