diff --git a/yard/replacements/etc/bootdisk_motd b/yard/replacements/etc/bootdisk_motd new file mode 100644 index 0000000..a937c88 --- /dev/null +++ b/yard/replacements/etc/bootdisk_motd @@ -0,0 +1 @@ +Welcome to YardBoot rescue disk diff --git a/yard/replacements/etc/gettydefs b/yard/replacements/etc/gettydefs new file mode 100644 index 0000000..5c783db --- /dev/null +++ b/yard/replacements/etc/gettydefs @@ -0,0 +1 @@ +VC# B9600 SANE CLOCAL # B9600 SANE -ISTRIP CLOCAL #Log_in_as_root: #VC diff --git a/yard/replacements/etc/inittab b/yard/replacements/etc/inittab new file mode 100644 index 0000000..7bc7cc8 --- /dev/null +++ b/yard/replacements/etc/inittab @@ -0,0 +1,17 @@ +# Default runlevel. +id:5:initdefault: + +# Run rc when system boots +si:S:sysinit:/etc/rc + +# NB. This uses getty, not agetty. + +c1:1235:respawn:/sbin/getty tty1 VC linux +c2:1235:respawn:/sbin/getty tty2 VC linux +c3:5:respawn:/sbin/getty tty3 VC linux +c4:5:respawn:/sbin/getty tty4 VC linux +c5:5:respawn:/sbin/getty tty5 VC linux +c6:45:respawn:/sbin/getty tty6 VC linux + +ca::ctrlaltdel:/sbin/shutdown -t5 -rfn now + diff --git a/yard/replacements/etc/inittab.agetty b/yard/replacements/etc/inittab.agetty new file mode 100644 index 0000000..22b1dd7 --- /dev/null +++ b/yard/replacements/etc/inittab.agetty @@ -0,0 +1,21 @@ +# Default runlevel. +id:5:initdefault: + +# Run rc when system boots +si:S:sysinit:/etc/rc + +# NOTE: THIS IS FOR SLACKWARE AGETTY ONLY! Other versions of agetty +# use a different argument order that will cause agetty to +# hang. +# Check these calls against your own /etc/inittab ! +# Note: for 'agetty' you use linespeed, line. +# for 'getty_ps' you use line, linespeed and also use 'gettydefs' +c1:1235:respawn:/sbin/agetty 38400 tty1 linux +c2:1235:respawn:/sbin/agetty 38400 tty2 linux +c3:5:respawn:/sbin/agetty 38400 tty3 linux +c4:5:respawn:/sbin/agetty 38400 tty4 linux +c5:5:respawn:/sbin/agetty 38400 tty5 linux +c6:45:respawn:/sbin/agetty 38400 tty6 linux + +ca::ctrlaltdel:/sbin/shutdown -t5 -rfn now + diff --git a/yard/replacements/etc/inittab.debian b/yard/replacements/etc/inittab.debian new file mode 100644 index 0000000..8f7639b --- /dev/null +++ b/yard/replacements/etc/inittab.debian @@ -0,0 +1,18 @@ +# Default runlevel. +id:5:initdefault: + +# Run rc when system boots +si:S:sysinit:/etc/rc + +# NOTE: THIS IS FOR DEBIAN ONLY! Other versions of agetty +# use a different argument order that will cause agetty to +# hang. +# Check these calls against your own /etc/inittab ! +c1:1235:respawn:/sbin/getty 38400 tty1 +c2:1235:respawn:/sbin/getty 38400 tty2 +c3:5:respawn:/sbin/getty 38400 tty3 +c4:5:respawn:/sbin/getty 38400 tty4 +c5:5:respawn:/sbin/getty 38400 tty5 +c6:45:respawn:/sbin/getty 38400 tty6 + +ca::ctrlaltdel:/sbin/shutdown -t5 -rfn now diff --git a/yard/replacements/etc/inittab.mingetty b/yard/replacements/etc/inittab.mingetty new file mode 100644 index 0000000..dacb133 --- /dev/null +++ b/yard/replacements/etc/inittab.mingetty @@ -0,0 +1,17 @@ +# Default runlevel. +id:2:initdefault: + +# Run rc when system boots +si:I:sysinit:/etc/rc + +# NOTE: THIS IS FOR SUSE MINGETTY ONLY! +# Check these calls against your own /etc/inittab ! +# +1:123:respawn:/sbin/mingetty --noclear tty1 +2:123:respawn:/sbin/mingetty tty2 +3:123:respawn:/sbin/mingetty tty3 +4:123:respawn:/sbin/mingetty tty4 +5:123:respawn:/sbin/mingetty tty5 +6:123:respawn:/sbin/mingetty tty6 + +ca::ctrlaltdel:/sbin/shutdown -t5 -rfn now diff --git a/yard/replacements/etc/nsswitch.conf b/yard/replacements/etc/nsswitch.conf new file mode 100644 index 0000000..e4e4284 --- /dev/null +++ b/yard/replacements/etc/nsswitch.conf @@ -0,0 +1,16 @@ +# Simple /etc/nsswitch.conf for a rescue disk +passwd: files +shadow: files +group: files +hosts: files +services: files +networks: files +protocols: files +rpc: files +ethers: files +netmasks: files +bootparams: files +automount: files +aliases: files +netgroup: files +publickey: files diff --git a/yard/replacements/etc/pam.conf b/yard/replacements/etc/pam.conf new file mode 100644 index 0000000..ce85913 --- /dev/null +++ b/yard/replacements/etc/pam.conf @@ -0,0 +1,8 @@ +# Simple pam.conf for rescue disk +# Be sure to include the libraries in the fourth column +# in Bootdisk_contents +OTHER auth optional /lib/security/pam_permit.so +OTHER auth optional /lib/security/pam_permit.so +OTHER account optional /lib/security/pam_permit.so +OTHER password optional /lib/security/pam_permit.so +OTHER session optional /lib/security/pam_permit.so diff --git a/yard/replacements/etc/pam.d/other b/yard/replacements/etc/pam.d/other new file mode 100644 index 0000000..b9f907d --- /dev/null +++ b/yard/replacements/etc/pam.d/other @@ -0,0 +1,8 @@ +# Simple pam.conf for rescue disk +# Be sure to include the libraries in the fourth column +# in Bootdisk_contents +auth optional /lib/security/pam_permit.so +auth optional /lib/security/pam_permit.so +account optional /lib/security/pam_permit.so +password optional /lib/security/pam_permit.so +session optional /lib/security/pam_permit.so diff --git a/yard/replacements/etc/passwd b/yard/replacements/etc/passwd new file mode 100644 index 0000000..0ebed31 --- /dev/null +++ b/yard/replacements/etc/passwd @@ -0,0 +1,4 @@ +root::0:0:root:/root:/bin/sh +halt:*:7:0:halt:/sbin:/sbin/halt +shutdown:*:6:0:shutdown:/sbin:/sbin/shutdown +sync:*:5:0:sync:/sbin:/bin/sync diff --git a/yard/replacements/etc/rc b/yard/replacements/etc/rc new file mode 100755 index 0000000..ea56ee8 --- /dev/null +++ b/yard/replacements/etc/rc @@ -0,0 +1,20 @@ +#!/bin/sh +# +# /etc/rc: System initialization script. +# + +# Compute module dependencies +/sbin/depmod -a + +# Start up kerneld if desired +#/sbin/kerneld + +# Mount everything mentioned in fstab +/bin/mount -av + +# Set host name +/bin/hostname Rescue + +# If you need to load a keyboard map, uncomment this line and +# fix the pathnames: +#/usr/sbin/loadkeys /usr/lib/kbd/keytables/defkeymap.map diff --git a/yard/replacements/etc/termcap b/yard/replacements/etc/termcap new file mode 100644 index 0000000..cc39a48 --- /dev/null +++ b/yard/replacements/etc/termcap @@ -0,0 +1,17 @@ +# a cut down version of /etc/termcap: terminal capability database. +# Just define linux console + +linux|console|con80x25|dumb:\ + :do=^J:co#80:li#25:cl=\E[H\E[J:sf=\ED:sb=\EM:\ + :le=^H:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ + :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[27m:us=\E[4m:ue=\E[m:\ + :md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:is=\E[1;25r\E[25;1H:\ + :ll=\E[1;25r\E[25;1H:al=\E[L:dc=\E[P:dl=\E[M:\ + :it#8:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=^H:ti=\E[r\E[H:\ + :ho=\E[H:kP=\E[5~:kN=\E[6~:kH=\E[4~:kh=\E[1~:kD=\E[3~:kI=\E[2~:\ + :k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:\ + :k7=\E[18~:k8=\E[19~:k9=\E[20~:k0=\E[21~:K1=\E[1~:K2=\E[5~:\ + :K4=\E[4~:K5=\E[6~:\ + :pt:sr=\EM:vt#3:xn:km:bl=^G:vi=\E[?25l:ve=\E[?25h:vs=\E[?25h:\ + :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:\ + :r1=\Ec:r2=\Ec:r3=\Ec: diff --git a/yard/replacements/etc/ttytype b/yard/replacements/etc/ttytype new file mode 100644 index 0000000..e1dabac --- /dev/null +++ b/yard/replacements/etc/ttytype @@ -0,0 +1,6 @@ +console tty1 +console tty2 +console tty3 +console tty4 +console tty5 +console tty6