From a9490abe1202d9f2627963196424377dbf63ff31 Mon Sep 17 00:00:00 2001 From: George Boudreau Date: Tue, 21 Mar 2006 16:07:34 +0000 Subject: [PATCH] CLFS/master.sh, make FSTAB available in minimal boot mode --- CLFS/clfs.xsl | 84 +++++++++++++++++++++++++++++++++++++++++ CLFS/master.sh | 2 + common/common-functions | 5 +-- 3 files changed, 88 insertions(+), 3 deletions(-) diff --git a/CLFS/clfs.xsl b/CLFS/clfs.xsl index e69de29..63dd0ef 100644 --- a/CLFS/clfs.xsl +++ b/CLFS/clfs.xsl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 00 + + + + 0 + + + + + + + + + + + + + + + + + + + + # Run this as root + + # End root commands + + + + + + + + + + + + + # This block must be edited to suit your needs. + + + + + + # End of editable block. + + + + + + **EDITME + + EDITME** + + + diff --git a/CLFS/master.sh b/CLFS/master.sh index f0eb2ff..92d1e00 100755 --- a/CLFS/master.sh +++ b/CLFS/master.sh @@ -987,6 +987,8 @@ bm_bootable_Makefiles() { # # Select a script execution method case $this_script in *fstab*) if [[ -n "$FSTAB" ]]; then + # Minimal boot mode has no access to original file, store in /sources + cp $FSTAB $BUILDDIR/sources/fstab wrt_copy_fstab2 "${this_script}" else wrt_run_as_root2 "${this_script}" "${file}" diff --git a/common/common-functions b/common/common-functions index 3216673..388f562 100644 --- a/common/common-functions +++ b/common/common-functions @@ -413,7 +413,7 @@ wrt_copy_fstab2() { # ( cat << EOF @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude={0,1}??-* \`\n" >logs/$i && \\ - cp -v $FSTAB /etc/fstab >>logs/$i 2>&1 && \\ + cp -v /sources/fstab /etc/fstab >>logs/$i 2>&1 && \\ echo -e "\n\`date\`\n\nKB: \`du -skx --exclude={0,1}??-* \`\n" >>logs/$i EOF ) >> $MKFILE.tmp @@ -622,8 +622,7 @@ extract_commands() { # echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture" xsltproc --xinclude \ --nonet \ - --output ./${PROGNAME}-commands/ \ - $BOOK/stylesheets/dump-commands.xsl $BOOK/$ARCH-index.xml + -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 ;; hlfs) echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS architecture"