Make the kernel filesystem scriptlets executable

This is so that they can be run from the main Makefile, instead
of having to edit them to put them inside the Makefile.
This commit is contained in:
Pierre Labastie 2022-10-06 10:20:34 +02:00
parent 8bcaf0d58b
commit 87eb9e9a94
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,8 @@
<xsl:output method="text"/> <xsl:output method="text"/>
<xsl:template match="/"> <xsl:template match="/">
<xsl:text>#!/bin/bash
</xsl:text>
<xsl:apply-templates select="//userinput[contains(string(),'--bind') or <xsl:apply-templates select="//userinput[contains(string(),'--bind') or
contains(string(),'/proc') or contains(string(),'/proc') or
contains(string(),'readlink') or contains(string(),'readlink') or

View file

@ -159,9 +159,11 @@ create_kernfs_scripts() { #
xsltproc --nonet \ xsltproc --nonet \
-o kernfs-scripts/devices.sh kernfs.xsl \ -o kernfs-scripts/devices.sh kernfs.xsl \
$BOOK/*/kernfs.xml >> $LOGDIR/$LOG 2>&1 $BOOK/*/kernfs.xml >> $LOGDIR/$LOG 2>&1
chmod +x kernfs-scripts/devices.sh
xsltproc --nonet \ xsltproc --nonet \
-o kernfs-scripts/teardown.sh kernfs.xsl \ -o kernfs-scripts/teardown.sh kernfs.xsl \
$BOOK/chapter??/reboot.xml >> $LOGDIR/$LOG 2>&1 $BOOK/chapter??/reboot.xml >> $LOGDIR/$LOG 2>&1
chmod +x kernfs-scripts/teardown.sh
echo "done" echo "done"