File: Bootdisk_Contents.minimal

package info (click to toggle)
yard 1.17.patch1-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 600 kB
  • ctags: 74
  • sloc: perl: 1,729; sh: 250; makefile: 176; asm: 32
file content (137 lines) | stat: -rw-r--r-- 3,148 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#  -*- Mode: Fundamental -*-
#
#  This is a pared-down Bootdisk_Contents file for use with Yard.
#  You can certainly boot with fewer files than this, but you
#  probably wouldn't want to.  With these you can at least
#  do some basic disk maintenance.
#
#  Format rules:
#  - Lines beginning with # or % are comments.
#
#  - Blank lines and whitespace may be used freely.
#
#  - Filenames may be either relative or absolute.
#
#  - Lines of the form "filename1 -> filename2" will create
#    links on the boot disk.  Eg, if you want sh linked to bash
#    on the bootdisk, you can specify: "/bin/sh -> /bin/bash"
#
#  - Lines of the form "filename1 <= filename2"
#    will cause filename2 (relative to the current working directory)
#    to be copied to filename1 on the boot disk.  This is useful for
#    specifying trimmed-down replacements for /etc/passwd, /etc/inittab, etc.
#
#  - Wildcards (? and *) are generally allowed, eg /dev/*
#    Wildcards are not allowed in link specs or replacement specs.
#
#  You don't need to specify shared libraries or ld.so*.  The
#  script will detect dependencies (via ldd) and include them
#  automatically.
#
#  You don't need to explicitly specify intermediate directories
#  unless you just want them to exist.
#

#  Specify these absolutely because boot scripts need them to be here.
/bin/cat
/bin/hostname		   	
/bin/ln			   	
/bin/login		   	
/bin/ls			   	
/bin/more
/bin/mv			   	
#  Use ash or some suitably minimal shell
/bin/sh -> ash

/sbin/agetty
/sbin/halt          
/sbin/init		   	
/sbin/ldconfig
/sbin/mount         
/sbin/reboot
/sbin/shutdown      
/sbin/swapoff       
/sbin/swapon        

#  Devices
/dev/ftape	/dev/nftape
/dev/mem	/dev/kmem
/dev/null
/dev/zero
/dev/ram
/dev/console
/dev/tty[0-9]
/dev/hd[ab]*
/dev/fd0*
/dev/cu*
/dev/*rft0

#  Files in etc:
/etc/group		   	
/etc/issue		   	
/etc/profile		    
/etc/termcap		   	

#  These get replaced with their pared-down versions 
#  in the Replacements subdirectory.
/etc/fstab	<= Replacements/etc/fstab
/etc/inittab	<= Replacements/etc/inittab
/etc/motd	<= Replacements/etc/bootdisk_motd
/etc/passwd	<= Replacements/etc/passwd
/etc/rc		<= Replacements/etc/rc
/etc/ttytype    <= Replacements/etc/ttytype
/etc/gettydefs  <= Replacements/etc/gettydefs

#  Initialize utmp and wtmp.  Set up links for any old-style programs
#  that expect them in /etc.  
/etc/utmp     -> /var/run/utmp
/var/run/utmp <= /dev/null        # This clears utmp

/etc/wtmp     -> /var/log/wtmp
/var/log/wtmp <= /dev/null

#  Directories with nothing otherwise in them:
/mnt                
/proc               
/tmp                

#  Utilities.  The script will figure out their locations.
chmod		   	
chown		   	
chroot
cp			   	
date		   	
dd			   	
df			   	
du			   	
e2fsck        
fastboot		   	
fasthalt      
fdisk         
find       
fsck          
fsck.ext2     
grep       
gunzip		   	
gzip		   	
mkdir		   	
mke2fs        
mkfs          
mkfs.ext2     
mknod		   	
mkswap        
passwd		   	
pwd
reboot		   	
rm			   	
stty		   	
sync          
tail		   	
touch		   	
tr
umount        
uname
whoami
wc

#####  End of Bootdisk_Contents