From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aK1R4-00069z-Og for mharc-grub-devel@gnu.org; Fri, 15 Jan 2016 05:16:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK1R2-00069n-KZ for grub-devel@gnu.org; Fri, 15 Jan 2016 05:16:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aK1Qz-0001wA-Cc for grub-devel@gnu.org; Fri, 15 Jan 2016 05:16:48 -0500 Received: from mout.gmx.net ([212.227.15.18]:62145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aK1Qz-0001w6-2Z for grub-devel@gnu.org; Fri, 15 Jan 2016 05:16:45 -0500 Received: from [192.168.1.47] ([31.34.87.55]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MJSQ7-1aIeWI3hhD-00320g for ; Fri, 15 Jan 2016 11:16:42 +0100 To: The development of GNU GRUB From: "Arbiel (gmx)" Subject: Setting config_directory to prefix at grub launch time Message-ID: <5698C704.6050102@gmx.fr> Date: Fri, 15 Jan 2016 11:16:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sQp3ttmChvbSJ7E507WI7gU1UDQ5NhKVc" X-Provags-ID: V03:K0:VPsCbxl90nVirV2s4yWSMEq1UuAVmtTK/29yd7QzacCY9oGFsuo 1firw3Wf4CzfKuTDgS8eLK7qlBLsZ50owuj8oDALJJip918zobjwrwrvrG3D2jHaEX2poXx I9InFWQydAb6X6Nqb4r3oxqKCBpPqT518DgreXuQf8dNq+7Pu/7u8jCiZga48/bNDrpoqBV MYXwyJ9UNZL5YmLFU9LXQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:7FKFtlw6UpI=:0X1FfWDPwAu0gmbvCQu2u2 x5AUs2/jD1+pvARMIYtyLhyoDFv6mHk0z4/7NNo3zpxIpu5tDfZbNTsT5jWs5Ap5Afa5q08TI z06Jl6UT/L1qe1irjDHIvBLfpjiNpY7LVKRUnmkqgTj23I+JsdfVnRGpzfBsC+aokmwFoJdRt S4b0S+z1kxIc0PN3Ie6dz6aT2GCSk08I+TO83OC88WUN7aiUiy2PS9BnBG/ozJNJhTA6AyOgN /CscIxjedFZr1oECdUF4vUF38Pxe61iuH9HrsyrF2ORhRs4/k68AcgBvhBjaxD8mrILKboNyn u6jfh29ed7QX51C3sEonk8Y+QqWR9zNdFYpG6+8uGdvtaeS2qirQ0tqgVp52aSZySkeH80VYZ gzPGl/+rAvNKkim6DBwkrnuZ+Pk30GZcIB6TrL5wMp76iQmaglxolw1GjlnC/e9RfByCSPyUu c7JOKxTAvQc3Qmrlj6ooD1HmjQjqD4ONsiRotyJ4fxvYZjF0gu3z6AxLqwh34kRie5537oCjz g81Q+MZtHmIs3EfKdSzaM/zgyRKxtgqRtItewiFzG1DP5YjQDk0Xgv/lkFXoor6HXBv44lRaS 0/gbIyfZ7p1NnZo9J3vVm0zzPaCKb6u3GuAogeDDOFnYlt6qZ9mXbgEDeZethP7QuGwCQ0lt0 1ataGqlyxhkTsnt8QnlCHqS2yC8q6Aruy3ieh6IFT9oGZeVDjG4dacpP44P74mohHSkyvDNPE Ht4hFSInHK8yhmYF43M/zKB7QN9OJg46+rfKeLSkmMNj/R7NUIbg4sbZQ0I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2016 10:16:49 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sQp3ttmChvbSJ7E507WI7gU1UDQ5NhKVc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In the Ubuntu distributions, there is a /etc/grub.d/41_custom which creates the following lines in the grub configuration file ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### In the custom.cfg file, I use the source command to insert some private scripts stored in a ${prefix}/greffons/ directory. However, when the configuration file has been the target of a configfile command, the source of my private scripts becomes ${config_file}/greffons/. To be compatible to all situations, I need to have config_file set to prefix at the beginning of grub's running, as at this very moment prefix also is the directory of the configuration file. --sQp3ttmChvbSJ7E507WI7gU1UDQ5NhKVc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlaYxwcACgkQG6j+1Sdg4KsVlgD/Yw9RoKChTOj0DHQN0FkdH/q5 Iyj7R38/f5y2pJ30ZwIA/RQYKT8z1JlG/lahpOm0XOXIO5KziPNixBD0ZYrqZnbN =d1NK -----END PGP SIGNATURE----- --sQp3ttmChvbSJ7E507WI7gU1UDQ5NhKVc--