Changeset 50408d5


Ignore:
Timestamp:
10/14/2005 09:57:22 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
7990087
Parents:
1f1d6a1
Message:

Added a switch to submmint a real /etc/fstab file.
Some space clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r1f1d6a1 r50408d5  
    3838                                disables also the build of TCL, Expect
    3939                                and DejaGNU
    40                                
    41   --timezone TIMEZONE           set TIMEZONE as the local timezone. If not 
     40
     41  --timezone TIMEZONE           set TIMEZONE as the local timezone. If not
    4242                                specified, Europe/London will be used.
    4343
     
    4747                                will be used.
    4848
     49  --fstab FILE                  use FILE as the /etc/fstab file for the
     50                                LFS system. If not specified, a default
     51                                /etc/fstab file with dummy values is
     52                                created.
     53
    4954  -C, --kernel-config FILE      use the kernel configuration file specified
    5055                                in FILE to build the kernel. If not found,
     
    5257
    5358  -M, --run-make                run make on the generated Makefile
    54  
     59
    5560"
    5661
     
    165170        echo -e "\nLook like $1 isn't a valid timezone description."
    166171        echo -e "Verify your selection and the command line.\n"
     172        exit 1
     173      fi
     174      shift
     175      ;;
     176
     177    --fstab )
     178      test $# = 1 && eval "$exit_missing_arg"
     179      shift
     180      if [ -f $1 ] ; then
     181        FSTAB=$1
     182      else
     183        echo -e "\nFile $1 not found. Verify your command line.\n"
    167184        exit 1
    168185      fi
     
    624641    fi
    625642
    626     # In the mount of kernel filesystems we need to set LFS 
     643    # In the mount of kernel filesystems we need to set LFS
    627644    # and not to use chroot.
    628645    if [ ${i:4:6} = "kernfs" ] ; then
     
    692709    # The filesystems can't be unmounted yet due that the user must
    693710    # to enter to the chroot environment to create the root password,
    694     # edit several files and setup Grub, 
     711    # edit several files and setup Grub,
    695712    elif echo $i | grep -q "reboot" ; then
    696713       continue
     
    736753) >> $MKFILE.tmp
    737754    fi
    738    
     755
    739756    # Put in place the kernel .config file
    740757    if [ ${i:4:6} = "kernel" ] ; then
     
    746763    fi
    747764
     765    # Check if we have a real /etc/fstab file
     766    if [ ${i:4:5} = "fstab" ] && [ -n "$FSTAB" ] ; then
     767(
     768    cat << EOF
     769        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=0??-* \$(LFS)\`\n" >logs/$i && \\
     770        cp -v $FSTAB \$(LFS)/etc/fstab >>logs/$i 2>&1 && \\
     771        echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=0??-* \$(LFS)\`\n" >>logs/$i
     772EOF
     773) >> $MKFILE.tmp
     774    else
    748775    # Initialize the log an run the script
    749776(
     
    754781EOF
    755782) >> $MKFILE.tmp
     783    fi
    756784
    757785    # Remove the build directory except if the package build fails.
     
    760788    cat << EOF
    761789        @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
    762         rm -r \$(LFS)\$(SRC)/\$\$ROOT 
     790        rm -r \$(LFS)\$(SRC)/\$\$ROOT
    763791EOF
    764792) >> $MKFILE.tmp
Note: See TracChangeset for help on using the changeset viewer.