Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp786323pxf; Wed, 7 Apr 2021 11:29:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWEir+HKyJerD04mH/b4Nx7+nMv1iJq1OM/EKZ5eNOYlbjU5y1BEZ4h4ibbd45JHhXY8Uq X-Received: by 2002:a17:906:8a7a:: with SMTP id hy26mr2490916ejc.509.1617820166185; Wed, 07 Apr 2021 11:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617820166; cv=none; d=google.com; s=arc-20160816; b=y4ifZ1O2WJU14+5NYCVFw9SoAncTrg8kvSl68Ld+eZ3FZCmdRbUMQdfAxpVSYYc3bg lN2qMkoeuKvBhWbaIGlzZt1/OI9O69A8RfjqhsPoTe7JBkplfLDqCH9wRFBYM1168rcq IRDCuDD11eSFXJLFhZcpHwCX4SVG3Ue1WZFEkLUl2WP5GfdkKk6XlRwcbiAhpPh4IvSH kTp3vCgkbD5KJbCTnfsCxP++SQ1q05/0JpUfxUqJPcTrV0uIBQnNB4hs4/88+52mQXje q2Gok9tIEPRtUP3ZvfD1fLoKNLXvWY/e3UKCVJCA1R9W15vRd2VwfAdTtOPeYeqfzqJu XvjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6Qn/ZKHvi5JLqBS8/gZDXaKPIivptID3a5LOr4Od7RU=; b=YOFRSE/mIYuxtW4bP+SI+X4LXxFbN8WIHUmXfwY1VNmZl5foIDSDtN7mYUEwQB73wK mQdRAjS7UfumB9B8JapvNNq3mTDs1T1+/L2Uxt07QRxf27qmuLY4yuK75XGxVN9TVajq 37gz3FswmlPTyoC/tBGQTWVnQLmvS+t9tLoqbDag4IhmeX7Nd4MGOb2w7ly1NbRIsuUk AYWtm5S6Aqz9zHV9/NANfDbjoUgwljTykLBvl2bBs7yAxEZJW3FfgMuXOuSUwJStaBei mgv28d2Lji/aR2f9b2MY6wP+fvN0Uy1OIXqm/KWBHnwq1gr8Wk84kUSQLnbG3pH9ZoTf RGYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0FOc29ZG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si19618781ejy.742.2021.04.07.11.29.02; Wed, 07 Apr 2021 11:29:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0FOc29ZG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348713AbhDGFe7 (ORCPT + 99 others); Wed, 7 Apr 2021 01:34:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:38270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348708AbhDGFe7 (ORCPT ); Wed, 7 Apr 2021 01:34:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BB888613B8; Wed, 7 Apr 2021 05:34:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617773689; bh=wgqLKCpv5Q1vEaaFl8xvuInNNea8k2m+fFzOdqUbyw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0FOc29ZGjx5iCyoeD/hFnnJMp6MK22rKftLmPC/k2fkvWM/woCpNyQx+frfwPs3OG e+SiqrJrJX+j3b6BuVmjurM3bKSh5vIHLpHIsqQdkYAxgPJa8FQmJ31QBIrtU+o/bF CB3tPwEEateROLJts7jwJpvdbDeAhoNCm0QxJjXo= From: Greg Kroah-Hartman To: Masahiro Yamada , Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 04/20] kbuild: scripts/install.sh: call sync before calling the bootloader installer Date: Wed, 7 Apr 2021 07:34:03 +0200 Message-Id: <20210407053419.449796-5-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210407053419.449796-1-gregkh@linuxfoundation.org> References: <20210407053419.449796-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's good to ensure that the files are written out before calling the bootloader installer, as other architectures do, so call sync after doing the copying of the kernel and system map files. Signed-off-by: Greg Kroah-Hartman --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index af36c0a82f01..92d0d2ade414 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -52,12 +52,12 @@ if [ -x /sbin/"${INSTALLKERNEL}" ]; then exec /sbin/"${INSTALLKERNEL}" "$@"; fi # Default install - same as make zlilo install "$2" "$4"/vmlinuz install "$3" "$4"/System.map +sync if [ -x /sbin/lilo ]; then /sbin/lilo elif [ -x /etc/lilo/install ]; then /etc/lilo/install else - sync echo "Cannot find LILO." fi -- 2.31.1