Browse Source

Changed to agetty first in control structure, and changed Helper.yard

to be only a init=/bin/bash fs.
master
freesource 22 years ago
parent
commit
caae1f01d5
  1. 16
      doc/html/index.html
  2. 2
      gbootroot_pkg
  3. 16
      yard/templates/Example-Mini.yard
  4. 37
      yard/templates/Example.yard
  5. 68
      yard/templates/Helper.yard

16
doc/html/index.html

@ -3,7 +3,7 @@
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" <body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E"
alink="#FF0000"> alink="#FF0000">
<center>$Id: index.html,v 1.120 2003/02/18 18:48:17 freesource Exp $</center> <center>$Id: index.html,v 1.121 2003/02/18 19:47:45 freesource Exp $</center>
<p> <p>
@ -1734,7 +1734,7 @@ Usage: gbootroot [OPTION]...
<p> <p>
<li> The if/elsif operator may be used to test for the existence of an <li> The if/elsif statement may be used to test for the existence of an
absolute or relative file condition. If the condition is true absolute or relative file condition. If the condition is true
than the following statements will be parsed, otherwise additional than the following statements will be parsed, otherwise additional
conditions are examined. The statements can be specified by any conditions are examined. The statements can be specified by any
@ -1756,14 +1756,14 @@ Usage: gbootroot [OPTION]...
--------- ---------
\ \
if ( mingetty ) if ( agetty )
/etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm /etc/inittab <= Replacements/etc/inittab.example.agetty-rpm
/sbin/mingetty
/etc/gettydefs
elsif ( agetty )
/etc/inittab <= Replacements/etc/inittab.example.agetty-slack
/sbin/agetty /sbin/agetty
/etc/gettydefs /etc/gettydefs
elsif ( mingetty )
/etc/inittab <= Replacements/etc/inittab.example.mingetty-slack
/sbin/mingetty
/etc/gettydefs
elsif ( getty ) elsif ( getty )
/etc/inittab <= Replacements/etc/inittab.example-deb /etc/inittab <= Replacements/etc/inittab.example-deb
/sbin/getty /sbin/getty

2
gbootroot_pkg

@ -178,7 +178,7 @@ chdir($gbootroot_cvs) or die "Couldn't change to $gbootroot_cvs: $!\n";
# Basically we are just concerned with the first part of cp and will # Basically we are just concerned with the first part of cp and will
# use home_builder to make sure the directory exists. # use home_builder to make sure the directory exists.
system "rm -rf $packaging_place"; system "rm -rf $packaging_place" if $ARGV[0] ne "src";
system "install -d $packaging_place"; system "install -d $packaging_place";
foreach (@make_lines) { foreach (@make_lines) {

16
yard/templates/Example-Mini.yard

@ -1,4 +1,4 @@
# $Id: Example-Mini.yard,v 1.5 2003/02/07 19:12:30 freesource Exp $ # $Id: Example-Mini.yard,v 1.6 2003/02/13 07:37:49 freesource Exp $
# Example-Mini.yard # Example-Mini.yard
# #
# Creates a minimalistic S runlevel root filesystem with not much more than # Creates a minimalistic S runlevel root filesystem with not much more than
@ -55,7 +55,7 @@
# #
# Control Structures # Control Structures
# ------------------ # ------------------
# The if/elsif operator may be used to test for the existence of an # The if/elsif statement may be used to test for the existence of an
# absolute or relative file condition. If the condition is true # absolute or relative file condition. If the condition is true
# than the following statements will be parsed, otherwise additional # than the following statements will be parsed, otherwise additional
# conditions are examined. The statements can be specified by any # conditions are examined. The statements can be specified by any
@ -72,14 +72,14 @@
# --------- # ---------
# #
# \ # \
# if ( mingetty ) # if ( agetty )
# /etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm # /etc/inittab <= Replacements/etc/inittab.example.agetty-rpm
# /sbin/mingetty
# /etc/gettydefs
# elsif ( agetty )
# /etc/inittab <= Replacements/etc/inittab.example.agetty-slack
# /sbin/agetty # /sbin/agetty
# /etc/gettydefs # /etc/gettydefs
# elsif ( mingetty )
# /etc/inittab <= Replacements/etc/inittab.example.mingetty-slack
# /sbin/mingetty
# /etc/gettydefs
# elsif ( getty ) # elsif ( getty )
# /etc/inittab <= Replacements/etc/inittab.example-deb # /etc/inittab <= Replacements/etc/inittab.example-deb
# /sbin/getty # /sbin/getty

37
yard/templates/Example.yard

@ -1,4 +1,4 @@
# $Id: Example.yard,v 1.24 2003/02/11 18:33:31 freesource Exp $ # $Id: Example.yard,v 1.25 2003/02/13 07:37:48 freesource Exp $
# Example.yard # Example.yard
# #
# Creates a minimalistic multi-user runlevel root filesystem with # Creates a minimalistic multi-user runlevel root filesystem with
@ -65,7 +65,7 @@
# Control Structures # Control Structures
# ------------------ # ------------------
# #
# The if/elsif operator may be used to test for the existence of an # The if/elsif statement may be used to test for the existence of an
# absolute or relative file condition. If the condition is true # absolute or relative file condition. If the condition is true
# than the following statements will be parsed, otherwise additional # than the following statements will be parsed, otherwise additional
# conditions are examined. The statements can be specified by any # conditions are examined. The statements can be specified by any
@ -82,14 +82,14 @@
# --------- # ---------
# #
# \ # \
# if ( mingetty ) # if ( agetty )
# /etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm # /etc/inittab <= Replacements/etc/inittab.example.agetty-rpm
# /sbin/mingetty
# /etc/gettydefs
# elsif ( agetty )
# /etc/inittab <= Replacements/etc/inittab.example.agetty-slack
# /sbin/agetty # /sbin/agetty
# /etc/gettydefs # /etc/gettydefs
# elsif ( mingetty )
# /etc/inittab <= Replacements/etc/inittab.example.mingetty-slack
# /sbin/mingetty
# /etc/gettydefs
# elsif ( getty ) # elsif ( getty )
# /etc/inittab <= Replacements/etc/inittab.example-deb # /etc/inittab <= Replacements/etc/inittab.example-deb
# /sbin/getty # /sbin/getty
@ -213,23 +213,22 @@ telinit
# Choose the *-nodevfs version if you don't want to use the device fs # Choose the *-nodevfs version if you don't want to use the device fs
# (devfs=nomount) # (devfs=nomount)
# #
#===== MANDRAKE, REDHAT and many other modern RH based DISTS use mingetty: #
#===== SLACKWARE and SUSE use agetty:
\ \
if ( mingetty ) if ( agetty )
/etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm /etc/inittab <= Replacements/etc/inittab.example-agetty-helper
#/etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm-nodevfs /sbin/agetty
/sbin/mingetty
/etc/gettydefs /etc/gettydefs
# #
#===== SLACKWARE uses agetty: #===== MANDRAKE, REDHAT and many other modern RH based DISTS use mingetty:
elsif ( agetty ) elsif ( mingetty )
/etc/inittab <= Replacements/etc/inittab.example.agetty-slack /etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm
#/etc/inittab <= Replacements/etc/inittab.example.agetty-slack-nodevfs #/etc/inittab <= Replacements/etc/inittab.example.mingetty-rpm-nodevfs
/sbin/agetty /sbin/mingetty
/etc/gettydefs /etc/gettydefs
# #
#===== DEBIAN uses a program called "getty" which is actually agetty in #===== DEBIAN uses a program called "getty" which is actually agetty in

68
yard/templates/Helper.yard

@ -1,4 +1,4 @@
# $Id: Helper.yard,v 1.7 2003/02/14 05:45:36 freesource Exp $ # $Id: Helper.yard,v 1.8 2003/02/15 02:10:07 freesource Exp $
# Helper.yard # Helper.yard
# #
############################################################################# #############################################################################
@ -28,31 +28,31 @@ telinit
##/sbin/swapon ##/sbin/swapon
# Login stuff # Login stuff
/bin/login ##/bin/login
/sbin/sulogin # used by inittab.debian-min ##/sbin/sulogin # used by inittab.debian-min
/etc/securetty <= Replacements/etc/securetty.example ##/etc/securetty <= Replacements/etc/securetty.example
/root/.bashrc <= Replacements/root/.bashrc.debian ##/root/.bashrc <= Replacements/root/.bashrc.debian
/root/.profile <= Replacements/root/.profile.debian ##/root/.profile <= Replacements/root/.profile.debian
/home/user/.bashrc <= Replacements/home/user/.bashrc.debian ##/home/user/.bashrc <= Replacements/home/user/.bashrc.debian
/home/user/.bash_profile <= Replacements/home/user/.bash_profile.debian ##/home/user/.bash_profile <= Replacements/home/user/.bash_profile.debian
/etc/hostname <= Replacements/etc/hostname ##/etc/hostname <= Replacements/etc/hostname
/etc/motd <= Replacements/etc/motd ##/etc/motd <= Replacements/etc/motd
# login and mount stuff # login and mount stuff
# #
/etc/fstab <= Replacements/etc/fstab.example /etc/fstab <= Replacements/etc/fstab.example
# #
/etc/issue # nice to have ##/etc/issue # nice to have
# #
# No password for root or user. # No password for root or user.
/etc/group <= Replacements/etc/group.example /etc/group <= Replacements/etc/group.example
/etc/passwd <= Replacements/etc/passwd.example ##/etc/passwd <= Replacements/etc/passwd.example
# #
# Shadow password root=root user=user # Shadow password root=root user=user
#/etc/group <= Replacements/etc/group.debian #/etc/group <= Replacements/etc/group.debian
#/etc/passwd <= Replacements/etc/passwd.debian #/etc/passwd <= Replacements/etc/passwd.debian
#/etc/shadow <= Replacements/etc/shadow.debian #/etc/shadow <= Replacements/etc/shadow.debian
/etc/login.defs ##/etc/login.defs
# Specify these binaries absolutely because boot scripts need them to be here. # Specify these binaries absolutely because boot scripts need them to be here.
/bin/echo # for inittab.debian.sample /bin/echo # for inittab.debian.sample
@ -77,11 +77,11 @@ telinit
/etc/shells # Make sure all included shells are listed. /etc/shells # Make sure all included shells are listed.
# PROVISIONS FOR PAM: # PROVISIONS FOR PAM:
/etc/pam.d/other ##/etc/pam.d/other
/etc/pam.d/login ##/etc/pam.d/login
\ if ( /etc/pam.d/system-auth ) ##\ if ( /etc/pam.d/system-auth )
# RedHat uses this # RedHat uses this
/etc/pam.d/system-auth \ ## /etc/pam.d/system-auth \
# /etc/pam.conf # /etc/pam.conf
# PROVISIONS FOR NSS # PROVISIONS FOR NSS
@ -96,31 +96,31 @@ telinit
# still work. Check your /etc/inittab to confirm, or create a new inittab # still work. Check your /etc/inittab to confirm, or create a new inittab
# replacement and edit as required. Some gettys require /etc/gettydefs. # replacement and edit as required. Some gettys require /etc/gettydefs.
# #
#===== MANDRAKE, REDHAT and many other modern RH based DISTS use mingetty: #
#===== SLACKWARE and SUSE use agetty:
\ ##\
if ( mingetty ) ##if ( agetty )
/etc/inittab <= Replacements/etc/inittab.example-mingetty-helper ## /etc/inittab <= Replacements/etc/inittab.example-agetty-helper
/sbin/mingetty ## /sbin/agetty
/etc/gettydefs ## /etc/gettydefs
# #
#===== SLACKWARE uses agetty: #===== MANDRAKE, REDHAT and many other modern RH based DISTS use mingetty:
elsif ( agetty ) ##elsif ( mingetty )
/etc/inittab <= Replacements/etc/inittab.example-agetty-helper ## /etc/inittab <= Replacements/etc/inittab.example-mingetty-helper
/sbin/agetty ## /sbin/mingetty
/etc/gettydefs ## /etc/gettydefs
# #
#===== DEBIAN uses a program called "getty" which is actually agetty in #===== DEBIAN uses a program called "getty" which is actually agetty in
#===== disguise: #===== disguise:
elsif ( getty ) ##elsif ( getty )
/etc/inittab <= Replacements/etc/inittab.example-helper ## /etc/inittab <= Replacements/etc/inittab.example-helper
/sbin/getty ## /sbin/getty
\ ##\
##### utmp and wtmp. ##### utmp and wtmp.
@ -183,7 +183,7 @@ modprobe
# #
## There needs to be a helper root_fs for both 2.2 and 2.4! ## There needs to be a helper root_fs for both 2.2 and 2.4!
# #
#/modules-2.2.tar <= Replacements/lib/modules/modules-2.2.tar ##/modules-2.2.tar <= Replacements/lib/modules/modules-2.2.tar
##/modules-2.4.tar <= Replacements/lib/modules/modules-2.4.tar ##/modules-2.4.tar <= Replacements/lib/modules/modules-2.4.tar
##### ESSENTIAL SYSTEM UTILITIES ##### ESSENTIAL SYSTEM UTILITIES

Loading…
Cancel
Save