From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: ISO installer image: GPT versus MBR partitions Date: Thu, 25 Apr 2019 21:01:43 +0200 Message-ID: <20190425210143.4777855b@scratchpost.org> References: <20190425195521.4dd1ef5e@scratchpost.org> <14387677849925631817@scdbackup.webframe.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/W93u0ixDIx9kmCTFNnK290."; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJjdA-0000ZG-1x for guix-devel@gnu.org; Thu, 25 Apr 2019 15:02:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJjd8-0003GV-0H for guix-devel@gnu.org; Thu, 25 Apr 2019 15:01:59 -0400 In-Reply-To: <14387677849925631817@scdbackup.webframe.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Thomas Schmitt Cc: bug-xorriso@gnu.org, guix-devel@gnu.org --Sig_/W93u0ixDIx9kmCTFNnK290. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable > How deep shall this go ? dd, awk, od, head, find, test, mv, rm, ... Ideally everything. That's why we don't use shell scripts that much: They are annoying to make behave. Compare with C which will link a library and with option "-Wl,-rpath" (which we use everywhere) will embed the absolute path to the library in the executable and NEVER use another one than the one it was compiled with. Usually, we just wrap the entire shell script in a wrapper that sets up PATH first. As long as there are no naming conflicts in the dependencies, it should be fine (since PATH just lists directories, not regular files, it could still be bad). I'm thinking of doing this PATH wrapper here, too. It's easily automated on the Guix side. The end goal (for the most part reached) is to have a package be a module that doesn't affect the rest of the system except when it is supposed to. Other distributions are spectacularily bad at this--to say nothing about Windows where it's normal that installing one application can break a totally unrelated application that had already been there. > But do all reasonable shells support -e ? > (I must dig in man ksh down to builtin command -set to get confirmation.) I don't know. > > For now, let's try the shell script and make it more paranoid. =20 >=20 > Please report all changes (and be ready to motivate them). Okay! --Sig_/W93u0ixDIx9kmCTFNnK290. Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlzCBBcACgkQ5xo1VCww uqWl/wf+J1ImWyUY4W9D1+eXPALtGDojhcDvWiJ1mWYaZu7LGMEirW+v3hSoMs4S XnluWBlbEkwVN6nll7PZV2FWljtER4wf6YewuIBHIVkHcgY8U4QFhL3w3G0QAPBG 0QbVVaBM6EhN2S4JDEAzX8Ku+HKEzStt50cp3vS9XPq3UP/5dYgvy73JhVODCyRf Z00vMVORL9Mpsz/luQTQSIszD7etv6St6zqK26GFRdIKCXPFMjIoucptBAgCR3hX SqT/79GT3GsKT8gbInY3bzwPBpwmc8jhCfWuHO9h66Oq09wDk9RKLIywcO5q9GQu 897FR9IcuP1N0CqMZ19y/7m6aJ/XWw== =jedi -----END PGP SIGNATURE----- --Sig_/W93u0ixDIx9kmCTFNnK290.--