cvs commit: ALFS/profiles/LFS/config_sample fstab.xml general.ent grub.xml kernel.xml

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Fri Dec 5 19:25:09 PST 2003


kpfleming    03/12/05 20:25:09

  Added:       profiles/LFS/config_sample fstab.xml general.ent grub.xml
                        kernel.xml
  Log:
  initial import
  
  Revision  Changes    Path
  1.1                  ALFS/profiles/LFS/config_sample/fstab.xml
  
  Index: fstab.xml
  ===================================================================
  <stage name="Creating the /etc/fstab file">
  	<textdump>
  		<file>/etc/fstab</file>
  		<content>
  			=# Begin /etc/fstab
  			=
  			=# filesystem     mount-point     fs-type   options        dump fsck-order
  			=&lfs_partition;  /               &fs_type; defaults       1    1
  			=&swap_partition; swap            swap      pri=1          0    0
  			=proc             /proc           proc      defaults       0    0
  			=devpts           /dev/pts        devpts    gid=4,mode=620 0    0
  			=shm              /dev/shm        tmpfs     defaults       0    0
  			=# End /etc/fstab
  		</content>
  	</textdump>
  </stage>
  
  
  
  1.1                  ALFS/profiles/LFS/config_sample/general.ent
  
  Index: general.ent
  ===================================================================
  <!--
       This file contains various entities that must be customized 
       for the build to work on your machine.
  
       For the build to be successfull, you should :
       - run nALFS as root
       - check that your umask is 022
  
       -->
  
  
  <!-- Directory in which LFS system will be installed.
       The build process try to mkdir -p it if it doen't exist.
       If you want to build LFS in its own partition (which
       is normally the case), you should create the directory 
       and mount the  partition before running nALFS.
       -->
  <!ENTITY LFS "/mnt/lfs">
  
  
  <!-- Location of your LFS packages.
       This is the directory in which all the packages downloaded
       from ftp.linuxfromscratch.org (or their original servers)
       are before running the script. The content of this directory
       will be copied in a subdirectory of &LFS; at the beginning of
       the build.
       IMPORTANT : be carefull about the original packages dir; if you 
                   enter the wrong directory, nALFS will try to download
                   all the packages in it !!!
       -->
  <!ENTITY orig_packages_dir "/home/dwheeler/LFS-5.0/packages">
  
  <!-- original package dir for PREBLFS -->
  <!ENTITY orig_preblfs_packages_dir "/var2/packages-PREBLFS">
  
  
  <!-- Partition of your new LFS system.
       This entity is used only to initialize the new fstab file.
       No attempt is done to access this partition during
       the build, except if it has been mounted on &LFS;
       -->
  <!ENTITY lfs_partition "/dev/hdb10">
  
  
  <!-- Type of your LFS partition.
       This entity is used only to initialize the new fstab file.
       -->
  <!ENTITY fs_type "ext3">
  
  
  <!-- Swap partition.
       This entity is used only to initialize the new fstab file
       -->
  <!ENTITY swap_partition "/dev/hdb1">
  
  
  <!-- Name of your machine.
       This entity is used to create the files /etc/host
       and /etc/sysconfig/network
       -->
  <!ENTITY hostname "wheeler3">
  
  <!-- Domain of your machine. 
       This entity is used to create the files /etc/host
       -->
  <!ENTITY domain "middle-earth">
  
  <!-- Some networking entities.
       These entities are used when creating the files
       /etc/sysconfig/network and 
       /etc/sysconfig/network-devices/ifconfig.eth0
       -->
  <!ENTITY gateway    "172.16.1.1">
  <!ENTITY gateway_if "eth0">
  <!ENTITY on_boot    "yes">
  <!ENTITY IP         "172.16.1.22">
  <!ENTITY netmask    "255.255.255.0">
  <!ENTITY broadcast  "172.16.1.255">
  
  <!-- Set here the name of the module of your network card -->
  <!ENTITY network-card-module "sis900">
  <!ENTITY network-interface   "eth0">
  
  <!-- Timezone file
       This entity will be used as the target of the link
       /etc/localtime
       -->
  <!ENTITY localtime "/usr/share/zoneinfo/America/Denver">
  
  
  <!-- Keymap file. 
       This entity will be used as the target of the link
       /usr/share/kbd/keymaps/defkeymap.map.gz
       -->
  <!ENTITY keymap "i386/qwerty/us.map.gz">
  
  <!-- value of UTC variable 
       This entity will be used to set the value of the variable UTC
       in the file /etc/sysconfig/clock
       -->
  <!ENTITY UTC "1">
  
  
  <!-- Temporary user name used for installing Chapter 5.
       This is a user in the host distribution. It will not
       be deleted at the end of the build.
       If the user does not exist it will be created.
       -->
  <!ENTITY lfs-user "lfs">
  
  <!-- Password of the temporary user name &lfs; 
       You should change this value and keep the present file
       secure this value has been changed or, better,
       create yourself the user in the host distribution,
       and give it a password.
       If the user exists already, its password will not be changed.
       -->
  <!ENTITY lfs-password "lf1nstl">
  
  
  <!-- Temporary user's home directory. -->
  <!ENTITY lfs-user-dir "/home/&lfs-user;">
  
  
  <!-- Root password. 
       This is the password of root in the new LFS distribution.
       Of course, you should change it as soon as you log into
       your new LFS.
       -->
  <!ENTITY password "r00tme">
  
  
  <!-- LFS book version -->
  <!ENTITY LFS-version "5.0">
  
  
  <!-- THE FOLLOWING TWO ENTITIES DECLARATIONS SHOULDN'T BE MOFIFIED
       UNLESS YOU KNOW WHAT YOU ARE DOING
        -->
  
  <!-- Directory (inside LFS) where all packages will be copied. -->
  <!ENTITY packages_dir "/tools/packages-&LFS-version;">
  
  
  <!-- Directory (inside LFS) where all packages will be compiled. -->
  <!ENTITY build_dir "/tools/build">
  
  <!-- gcc optimizations flags (overridden in packages known
      to behave badly with optimizations 
      see http://www.linuxfromscratch.org/hints/downloads/files/optimization.txt for more info
      IF YOU DON'T KNOW WHAT THIS IS FOR, DON'T CHANGE IT
      -->
  <!ENTITY gcc_optimizations "">
  
  <!-- gcc target triplet (used for adjusting the toolchain) -->
  <!ENTITY gcc_target "i686-pc-linux-gnu">
  
  <!-- Linux .config file to use
  	This file should be in a state that running `make oldconfig` will run straight through, as
  	that's what the profile in chapter 8 does with this entity.
      -->
  <!ENTITY kernel-config "&packages_dir;/linux-config">
  
  <!-- grub settings (these need to be in grub's notation) 
  	NOTE:  The grub configuration profile is completely commented out.  You should edit
  	chapter08/grub.xml for your individual system if you want to automate this.
  	-->
  <!ENTITY grub-root "hd0,0">
  <!ENTITY grub-install-location "hd0">
  
  
  
  1.1                  ALFS/profiles/LFS/config_sample/grub.xml
  
  Index: grub.xml
  ===================================================================
  <stage name="Making the LFS system bootable">
  	<!--
  	The following shell command sets up grub.  The batch param on the first line
  	has to have the space between the dashes removed for this to work.	
  
  	/sbin/grub - -batch <<EOF 1>/dev/null 2>/dev/null
  	root (&grub-root;)
  	setup (&grub-install-location;)
  	quit EOF
  	-->
  
  	<!-- Sample grub configuration-->
  	<!--
  	<textdump>
  		<file>/boot/grub/menu.lst</file>
  		<content>
  			=# Default to first menu entry
  			=default 0
  			=
  			=# Allow 30 seconds before booting default
  			=timeout=30
  			=
  			=# Use prettier colors
  			=color green/black light-green/black
  			=
  			=# Default Entry for LFS
  			=title LFS (&LFS-version; kernel &linux-version;)
  			=root (&grub-root;)
  			=kernel /boot/lfskernel-&linux-version; root=&lfs_partition; ro
  			=
  			=# Redhat Linux
  			=#title Redhat
  			=#root (hd0,2)
  			=#kernel /boot/kernel-2.4.20 root=/dev/hda3 ro
  			=#initrd /boot/initrd-2.4.20
  			=#
  			=# Windows
  			=#title Windows
  			=#rootnoverify (hd0,0)
  			=#chainloader +1
  			=#
  		</content>
  	</textdump>
  	-->
  </stage>
  
  
  
  1.1                  ALFS/profiles/LFS/config_sample/kernel.xml
  
  Index: kernel.xml
  ===================================================================
  <package name="linux" version="&linux-version;">
  	<stage name="Installing a package.">
  		<stageinfo>
  			<base>&linux-src-location;/&linux-directory;</base>
  		</stageinfo>
  
  		<make>
  			<param>mrproper</param>
  		</make>
  
  		<copy>
  			<source>&kernel-config;</source>
  			<destination>.config</destination>
  		</copy>
  
  		<make>
  			<param>oldconfig</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>dep</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>bzImage</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>modules</param>
  		</make>
  
  		<make>
  			<param>CC=/opt/gcc-2.95.3/bin/gcc</param>
  			<param>modules_install</param>
  		</make>
  
  		<make>
  			<param>mandocs</param>
  		</make>
  
  		<copy>
  			<option>archive</option>
  			<source>Documentation/man</source>
  			<destination>/usr/share/man/man9</destination>
  		</copy>
  
  		<copy>
  			<source>arch/i386/boot/bzImage</source>
  			<destination>/boot/lfskernel-&linux-version;</destination>
  		</copy>
  
  		<copy>
  			<source>System.map</source>
  			<destination>/boot/System-&linux-version;.map</destination>
  		</copy>
  
  		<textdump>
  			<file>/etc/modules.conf</file>
  			<content>=alias &network-interface; &network-card-module;</content>
  		</textdump>
  	</stage>
  </package>
  
  
  



More information about the alfs-log mailing list