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

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 db8fdd2 was 88b75ac, checked in by adv <adv@…>, 14 years ago

version1.0 #368 - Adaptando el antiguo ogclient a boot-tools

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1854 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        sleep 2
45
46        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before get OG variables: y/N "
47    [ $? == 0 ] && sh || echo " "
48
49
50        set -a
51        log_success_msg "Checking kernel parameters"
52        ogExportKernelParameters
53        log_success_msg "Checking Opengnys Environmnet"
54        ogExportVarEnvironment
55       
56        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure ramfs structure for OG: y/N "
57    [ $? == 0 ] && sh || echo " "
58        ogConfigureRamfs
59
60        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure netmoule specified in kernel parameters: y/N "
61    [ $? == 0 ] && sh || echo " "
62        ogLoadNetModule
63
64        #[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/og-premount"
65        #run_scripts /scripts/og-premount
66        #[ "$quiet" != "y" ] && log_end_msg
67
68        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure networking: y/N "
69    [ $? == 0 ] && sh || echo " "
70        ogconfigure_networking
71        log_success_msg "config networking"
72        ogconfigure_lo
73        log_success_msg "config loopback"
74
75
76        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before detect rootserver: y/N "
77    [ $? == 0 ] && sh || echo " "
78        ogGetROOTSERVER && log_success_msg "Get Info from pxe server"
79
80        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before conect with og Services : y/N "
81    [ $? == 0 ] && sh || echo " "
82        ogConectROOTSERVER && log_success_msg "Conecting with og services" || sh
83        # ogConectROOTMEDIA
84
85        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before merge the Second File System with initrd (First File System) : y/N "
86    [ $? == 0 ] && sh || echo " "
87        ogMerge2ndFile && log_success_msg "Merge onto Second File System"
88
89
90        #[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/og-bottom"
91        #run_scripts /scripts/og-bottom
92        #[ "$quiet" != "y" ] && log_end_msg
93
94
95        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before doing the postconfiguration: y/N "
96    [ $? == 0 ] && sh || echo " "
97        ogPostConfigureFS
98        setupcon -k
99
100        [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before calling oginit with /etc/inittab: y/N "
101    [ $? == 0 ] && sh || echo " "
102   
103if [ "$oginit" ]
104then
105        exec $oginit
106else
107        exec init
108fi
109
110
111
112
113
114}
Note: See TracBrowser for help on using the repository browser.