Received: from list by lists.gnu.org with archive (Exim 4.86_2) id 1hnEe5-0001dC-AN for mharc-grub-devel@gnu.org; Tue, 16 Jul 2019 00:00:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57511) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnEe2-0001d2-S3 for grub-devel@gnu.org; Tue, 16 Jul 2019 00:00:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnEe0-0000uD-QQ for grub-devel@gnu.org; Tue, 16 Jul 2019 00:00:50 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:35259) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnEe0-0000sL-BZ for grub-devel@gnu.org; Tue, 16 Jul 2019 00:00:48 -0400 Received: by mail-pl1-x633.google.com with SMTP id w24so9383559plp.2 for ; Mon, 15 Jul 2019 21:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=9U9Ml1Xy3sjDe+HaprFBjdLXIVikuhEXjfg1DHM+/yU=; b=CCrK8YnAJPQxo0stLG1KJiLp4JEWn5CDna9P2KSXIrHcDJxblrLilh5uDtNfs0lqRt FDexH2U6Wy4rsYwA4SqgKTVtDQsQA+IJ4dwMxDimHjfMb9TciyjSURRiFaJLa0WDeFDY MqNiGgk1d3Qa42kzGmZ4EdH3gTyJg7/PYN/60NNo9aHAnBsnzGlvOo0CUoM7GEj5f8re tW5775n1fCaU32BHG6kV98wW5/eVUBYiU6cBdPrRIr+ydJjAty1xWE6CeLMtNm/dgZ52 MI1t3XZgOGzrxpi+MnmgrgZ6fksMn2JGrYEyyAvoZ/9a014AycemBULYSCdnPo4769kJ EVVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=9U9Ml1Xy3sjDe+HaprFBjdLXIVikuhEXjfg1DHM+/yU=; b=udp2y9hkG/B5D1349oWFd5HgkBE3Gb9U46XBhqJCxn4TEDbdFDp0Rd2Y/3CuOiiCzO xznfsay4xB3LNP8fvHAYSWaskW6VnUdA4nWH30REv24ZVp+EWHcQgiI9/zv4MAz43Fdt If2NgYxV985bZvtbXeH/T9qaJFlfZoZSdVORnSP46tbGF+7ndvZ2SNUWRfSSlGcZweIi Hkfh4dkoJDkDETPr8Ts48ntz+2YhoSFMG5BTZkQqXfkMjUrYHQX2ICrEABdiwTzxo/no u5/ydDREV5ZIZ28yt4tFuYJpy11n3B37GhV+sJe4vISyzbWobjW78upVlRhyTHsNCJdF lOaA== X-Gm-Message-State: APjAAAXjJsns4nF1WncE/A4q5qJNkUSthOEfTEJBXqLKUwQt78LAC5nm QBlRhJLINFZqWfr45k24/Rpbiyg4 X-Google-Smtp-Source: APXvYqxRtjQmu6gYmiqKML2CNhhv/09/SpQWdZp9Tzdn7xgj0iz1Zf8Gr7ph92Veh2D3Adav6DqPAw== X-Received: by 2002:a17:902:be03:: with SMTP id r3mr32873247pls.156.1563249645105; Mon, 15 Jul 2019 21:00:45 -0700 (PDT) Received: from [192.168.1.5] ([120.63.20.132]) by smtp.gmail.com with ESMTPSA id 33sm25367220pgy.22.2019.07.15.21.00.43 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 21:00:44 -0700 (PDT) From: Amish Subject: grub-mkconfig - pick local defaults from /etc/default/grub.local To: grub-devel@gnu.org Message-ID: <36de4afe-c9be-03e4-e39f-6a92f15c488d@gmail.com> Date: Tue, 16 Jul 2019 09:30:40 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::633 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2019 04:00:52 -0000 Hello, Now-a-days many softwares have 3 levels of configuration. 1) Software's own default configuration 2) Vendor / Distribution specific configuration 3) Administrator's own configuration (mostly called as local configuration) grub-mkconfig: 1) has own defaults 2) which can be overridden by /etc/default/grub (by vendor / distributions) 3) local config is missing (administrators are expected to modify vendor config instead) I am using Arch Linux and they have their own set of defaults placed in /etc/default/grub I modify it with my own preferences for grub menu. But my problem is that everytime Arch Linux makes any modification to /etc/default/grub, I have to diff-merge or update my changes again. But if grub-mkconfig also sources /etc/default/grub.local in addition to /etc/default/grub then Administrators (like me) can have their own config without need to edit vendor specific configuration file everytime. It is 3 line addition as follows: --- grub-mkconfig       2019-07-05 15:44:43.000000000 +0530 +++ grub-mkconfig   2019-07-16 09:13:31.020769527 +0530 @@ -158,6 +158,10 @@    . ${sysconfdir}/default/grub  fi +if test -f ${sysconfdir}/default/grub.local ; then +  . ${sysconfdir}/default/grub.local +fi +  # XXX: should this be deprecated at some point?  if [ "x${GRUB_TERMINAL}" != "x" ] ; then    GRUB_TERMINAL_INPUT="${GRUB_TERMINAL}" Please do consider. Thank you, Amish. PS: I had filed feature request to Arch linux but they refused to source grub.local from /etc/default/grub. They want that everytime they change the file, administrator should manually handle it. But when you have 15-20 machines to handle, it becomes too much unnecessary work.