From 4762fb99001e472af865ad88a9b1ef6043fb0010 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 29 Mar 2020 15:13:15 +0000 Subject: [PATCH] Set the correct #! executable in creat* scriptlets Those scriptlets need to use a temporary bash, which is in /tools/bin for current LFS. But if we use a new method (cross-compiling + sysroot) it ends into /bin. So we have to set the correct `#!' header in both cases. We rely on the pesence of a "creatingtoolsdir" sect1 to know that bash is in /tools --- LFS/lfs.xsl | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index a19390a..5bafd82 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -89,6 +89,19 @@ + + + + + /tools + + + + + + @@ -158,16 +171,13 @@ - - - #!/tools/bin/bash set +h - - - #!/bin/bash set +h - - + #! + + + + /bin/bash set +h set -e