forked from yast/yast-installation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.doit
183 lines (116 loc) · 4 KB
/
README.doit
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
inst_doit documentation
-----------------------
What does 'doit' do ?
---------------------
After collecting the user preferences (i.e. user_settings map),
the 'doit' module performs the actual installation. This documents
gives an overview on the neccessary steps.
- create partitions on target device
fdisk
- create filesystems on partitions
# screen with progressbar for mke2fs ?
mke2fs for /boot
mkswap for swap
mke2fs for /
DONE: use newly created swap
swapon
DONE: mount newly created partitions
mount /dev/xxy /mnt # / partition
mkdir /mnt/boot
mount /dev/xxx /mnt/boot # /boot partition
DONE: install packages
mkdir /mnt/etc # mkdirs really needed ?
mkdir /mnt/bin
mkdir /mnt/sbin
mkdir /mnt/usr
mkdir /mnt/var # mkdirs for rpm
mkdir /mnt/var/lib
mkdir /mnt/var/lib/rpm
mkdir /mnt/var/tmp
mkdir /mnt/cdrom
# rpm module
check for right cd on /dev/cdrom
mount /dev/cdrom /mnt/cdrom
rpm --initdb
# install packages needed by scripts
rpm -hvU --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/aaa_dir.rpm
rpm -hvU --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/bash.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/shlibs.rpm
rpm -hvU --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/aaa_base.rpm
rpm -hvU --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/perl.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/ncurses.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/sh_utils.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/fileutil.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/textutil.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/base.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/devs.rpm
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/a1/diff.rpm
# might be needed if package list is wrong (as in 6.2)
rpm -hUv --nodeps --root /mnt --noscripts /mnt/cdrom/suse/tcl1/tcl.rpm
loop over *all* files (including files installed above !) but this
time with scripts
rpm -hUv --nodeps --force --root /mnt /cdrom/...
- write lilo
ask user for floppy if needed # see lilo flowchart
collect active partitions
create lilo.conf labels
'windows' for active windows partition
'dos' for active dos partition
'normal' (default) if graphic device found (init 3!)
'text' (make default if no graphic device,
same as normal in this case, init 2!)
construct boot.msg explaining the choices
chroot /mnt lilo -s <mbr_save_file>
create uninstall disk
write uninstall disk
- write default files # done by SuSEconfig ??
- /etc/HOSTNAME // does SuSEconfig from rc.config:FQHOSTNAME
- /etc/DOMAINNAME // does SuSEconfig from rc.config:FQHOSTNAME
- /etc/route.conf
- /etc/hosts // does SuSEconfig from rc.config:FQHOSTNAME
- write conf.modules
- with information from libhd
- write /etc/fstab
<rootpart> / ext2 defaults 1 1
<bootart> /boot ext2 defaults 1 2
<swappart> swap swap defaults 0 0
none /proc proc defaults 0 0
none /dev/pts devpts defaults 0 0
- optionally foreign partitions if existant
<dospart> /dos/c fat defaults 0 0
<winpart> /windows/c vfat defaults 0 0
- write setup information to /var/lib/YaST2 of target
mkdir /mnt/var/lib/YaST2
- user_settings # .dumpto agent
- installation log
- hwprobe # .dumpto agent
- write rc.config
DONE: Some variables
from user_settings
and all other files needed by YaST1
to have a proper setup
DONE: set root password
passwd # take PAM into account
DONE: chroot to newly installed system
umount /mnt
umount /
mount /dev/xxy /
init 1
- run SuSEconfig (in background ? tty8 ?)
- create user account
useradd # what else ?
passwd <user>
- stop X11, console mode
- setup X11
if (monitor,graphic,mouse) known
should not use maximal monitor resolution (one below)
should use 4:3 ratio
isax /mnt/var/X11/XF86config
xvidtune
else
sax
- start system
if (X11 configured)
init 3 # kdm !
else
init 2 # login: