Skip to content

Commit

Permalink
Fix issue#6531 by disabling command-not-found at build time - fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alexl83 committed May 17, 2024
1 parent 204acf8 commit 7725ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/functions/configuration/main-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

function pre_install_distribution_specific__disable_cnf_apt_hook(){
if [ ! "${ARCH} == amd64 ] && [ -f "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found ]; then #disable command-not-found (60% build-time saved under qemu)
display_alert "Disabling command-not-found during build-time to speed up image creation" "${BOARD}:${RELEASE}-${BRANCH} "info"
display_alert "Disabling command-not-found during build-time to speed up image creation" "${BOARD}:${RELEASE}-${BRANCH}" "info"
run_host_command_logged mv "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found.disabled
fi
}
function post_post_debootstrap_tweaks__restore_cnf_apt_hook(){
if [ -f "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found.disabled ]; then # (re-enable command-not-found after building rootfs if it's been disabled)
display_alert "Enabling command-not-found after build-time " "${BOARD}:${RELEASE}-${BRANCH} "info"
display_alert "Enabling command-not-found after build-time " "${BOARD}:${RELEASE}-${BRANCH}" "info"
run_host_command_logged mv "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found.disabled "${SDCARD}"/etc/apt/apt.conf.d/50command-not-found
fi
Expand Down

0 comments on commit 7725ac2

Please sign in to comment.