-
Notifications
You must be signed in to change notification settings - Fork 44
/
F09-start
executable file
·71 lines (63 loc) · 2.31 KB
/
F09-start
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
#!/bin/sh
log "Starting F09-start..."
log "====================="
#=============================================
# 9) call preFirstCall hook scripts
#---------------------------------------------
callHooks preFirstCall
# 9.05) cleanup before (re)starting
# bsc#1065167: Installer does not allow to change a base product when it's
# already registered. When installation is aborted and then restarted,
# the data of the previous registration was not automatically removed.
#
# log "Cleaning up previous registration attempts"
# Using /dev/null - If there is nothing to do, let it fail silently
SUSEConnect --cleanup > /dev/null 2>&1
#=============================================
# 9.1) check for driver update mode
#---------------------------------------------
# If /update/y2update/y2update.gz exists (copied there by linuxrc)
# uncompress the y2update.gz file, and mount it to /y2update.
#
# Else make a symlink from /y2update to /update/y2update.
# YaST2 will look for config files and components there.
#
mkdir -p /media/floppy
UPDATE_MOUNTED=false
if [ "$YaST2update" = 1 ] ; then
if [ -r /update/y2update/y2update.gz ] ; then
gunzip -c /update/y2update/y2update.gz > /dev/ram5
mkdir -p /y2update
if mount -o noatime /dev/ram5 /y2update ; then
log "\tPacked extension disk... OK"
UPDATE_MOUNTED=true
else
log "\tPacked extension disk... Failed"
fi
else
if [ -d /update/y2update ] ; then
log "\tUnpacked extension disk..."
ln -sf /update/y2update /y2update
UPDATE_MOUNTED=true
fi
fi
[ -r /y2update/logconf.ycp ] && cp /y2update/logconf.ycp /root
fi
#=============================================
# 9.2) goto run stage, start YaST2 (initial)
#---------------------------------------------
rm -f /var/X11R6/bin/X
rm -f /tmp/YaST2_ssh_installation_finished
log "\tDelegate program call to YaST2.call installation initial"
/usr/lib/YaST2/startup/YaST2.call installation initial
yast2exitcode=$?
#=============================================
# 9.3) save log file to installed system
#---------------------------------------------
log "\tCopy first level log file to installed system"
mkdir -p /mnt/var/log/YaST2
cp /var/log/YaST2/y2start.log /mnt/var/log/YaST2
#=============================================
# 9.4) call postFirstCall hook scripts
#---------------------------------------------
callHooks postFirstCall