source: client/boot-tools/clientstructure/etc/initramfs-tools/scripts/oginit @ 3cd3133

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 3cd3133 was b1ccf9b, checked in by adv <adv@…>, 14 years ago

version1.0 renombrando ogclient boot-tools

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1764 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 3.3 KB
Line 
1# OpenGnsys oginit                      -*- shell-script -*-
2
3#@file    oginit
4#@brief   Guion modificador inicio initrd para OpenGnSys
5#@warning
6#@version 0.1 - basado en ROOTfs
7#@author  Antonio J. Doblas Viso. Universidad de Málaga
8#@date    2009/00/00
9#@version 0.2 - basado en el instalador de ubunto
10#@author  Alejandro Castillo
11#@author  Ramón Gómez
12#@author  Irina
13#@author  Antonio Doblas
14#@date    2010/00/00
15#@version 0.7 - Generación limpia con mkinitrd, busybox
16#@author  Antonio J. Doblas Viso. Universidad de Málaga. EVLT.
17#@date    2010/05/24
18#@version 0.8 - Integración con FileSystem externo
19#@author  Antonio J. Doblas Viso. Universidad de Málaga. EVLT.
20#@date    2010/06/24
21#@version 0.8.1 - UnionFS + squasfs
22#@author  Antonio J. Doblas Viso. Universidad de Málaga. EVLT.
23#@date    2010/06/29
24
25#*/
26
27
28
29
30
31# Parameter: Where to mount the filesystem
32mountroot ()
33{
34        [ "$quiet" != "y" ] && log_begin_msg "Running OpenGnsys /scripts/og-top"
35        run_scripts /scripts/og-top
36        [ "$quiet" != "y" ] && log_end_msg
37
38        # If the root device hasn't shown up yet, give it a little while
39        # to deal with removable devices
40
41        . /scripts/functions
42        . /scripts/ogfunctions
43
44        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before get OG variables: y/N "
45    [ $? == 0 ] && sh || echo " "
46
47        set -a
48        log_success_msg "Checking kernel parameters"
49        ogExportKernelParameters
50        log_success_msg "Checking Opengnys Environmnet"
51        ogExportVarEnvironment
52       
53        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure ramfs structure for OG: y/N "
54    [ $? == 0 ] && sh || echo " "
55        ogConfigureRamfs
56
57        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure netmoule specified in kernel parameters: y/N "
58    [ $? == 0 ] && sh || echo " "
59        ogLoadNetModule
60
61        #[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/og-premount"
62        #run_scripts /scripts/og-premount
63        #[ "$quiet" != "y" ] && log_end_msg
64
65        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure networking: y/N "
66    [ $? == 0 ] && sh || echo " "
67        ogconfigure_networking
68        log_success_msg "config networking"
69        ogconfigure_lo
70        log_success_msg "config loopback"
71
72
73        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before detect rootserver: y/N "
74    [ $? == 0 ] && sh || echo " "
75        ogGetROOTSERVER && log_success_msg "Get Info from pxe server"
76
77        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before conect with og Services : y/N "
78    [ $? == 0 ] && sh || echo " "
79        ogConectROOTSERVER && log_success_msg "Conecting with og services" || sh
80        # ogConectROOTMEDIA
81
82        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before merge the Second File System with initrd (First File System) : y/N "
83    [ $? == 0 ] && sh || echo " "
84        ogMerge2ndFile && log_success_msg "Merge onto Second File System"
85
86
87        #[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/og-bottom"
88        #run_scripts /scripts/og-bottom
89        #[ "$quiet" != "y" ] && log_end_msg
90
91
92        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before doing the postconfiguration: y/N "
93    [ $? == 0 ] && sh || echo " "
94        ogPostConfigureFS
95        setupcon -k
96
97        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before calling oginit with /etc/inittab: y/N "
98    [ $? == 0 ] && sh || echo " "
99   
100if [ "$oginit" ]
101then
102        exec $oginit
103else
104        exec init
105fi
106
107
108
109
110
111}
Note: See TracBrowser for help on using the repository browser.