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 3f73876 was
b0ff94d,
checked in by ramon <ramongomez@…>, 14 years ago
|
Versión 1.0.2: Correcciones en scripts de arranque y restauración:
bootOs - elimina las marcas de Windows (arranque con varios Windows instalados).
bootLinux y bootWindows - son enlaces simbólicos de bootOs (posible eliminación).
restoreImage - llama a configureOs para proceso de postconfiguración.
Cerrar ticket #444.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2343 a21b9725-9963-47de-94b9-378ad31fedc9
|
-
Property mode set to
100755
|
File size:
1.7 KB
|
Rev | Line | |
---|
[f3850507] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[7ee2d1a] | 3 | #/** |
---|
| 4 | # configureOS |
---|
| 5 | #@brief Scirpt de ejemplo para realizar la configuracion del sistema operativo restaurado. |
---|
| 6 | #@brief (puede usarse como base para el programa de creación de imágenes usado por OpenGnSys Admin). |
---|
| 7 | #@param 1 disco |
---|
| 8 | #@param 2 particion |
---|
| 9 | #@return |
---|
| 10 | #@TODO comprobar que el tipo de particion corresponde con el sistema de archivos. |
---|
| 11 | #@exception OG_ERR_FORMAT # 1 formato incorrecto. |
---|
| 12 | #@version 1.0.1 - Integracion cambio de nombre, extender fs, chequear particion activa |
---|
| 13 | #@author |
---|
| 14 | #@date 2011-05-11 |
---|
[78b5dfe7] | 15 | #@version 1.0.1 - Configura el sector de la particion y el gestor de windows para iniciarse desde cualquier particion. |
---|
| 16 | #@author Antonio J. Doblas Viso. Universidad de Malaga. |
---|
| 17 | #@date 2011-05-20 |
---|
| 18 | |
---|
[7ee2d1a] | 19 | |
---|
| 20 | |
---|
| 21 | # Si el sistema de archivos no esta extendido. Realizar. |
---|
[f3850507] | 22 | PARTSIZE=$(ogGetPartitionSize $1 $2) |
---|
| 23 | FSSIZE=$(ogGetFsSize $1 $2) |
---|
| 24 | if [ $FSSIZE -lt $PARTSIZE ]; then |
---|
| 25 | echo "Extender sistema de archivos." |
---|
| 26 | ogExtendFs $1 $2 |
---|
| 27 | fi |
---|
| 28 | |
---|
[7ee2d1a] | 29 | #Si no existe particion activa, activar este sistema. |
---|
| 30 | FLAGACTIVE=$(ogGetPartitionActive $1) |
---|
| 31 | [ -z $FLAGACTIVE ] && ogSetPartitionActive $1 $2 |
---|
| 32 | |
---|
[f3850507] | 33 | # Cambiar nombre en sistemas Windows y quitar usuario de acceso por defecto. |
---|
| 34 | if [ "$(ogGetOsType $1 $2)" = "Windows" ]; then |
---|
[b0ff94d] | 35 | # Cambiar nombre en sistemas Windows. |
---|
[f3850507] | 36 | HOST=$(ogGetHostname) |
---|
| 37 | HOST=${HOST:-"pc"} |
---|
| 38 | ogSetWindowsName $1 $2 "$HOST" |
---|
[b0ff94d] | 39 | # Descomentar la siguiente línea para cambiar usuario de inicio. |
---|
| 40 | #ogSetWinlogonUser $1 $2 " " |
---|
| 41 | # Configurar el boot sector de la partición Windows. |
---|
| 42 | ogFixBootSector $1 $2 |
---|
| 43 | # Configurar el gestor de arranque de Windows XP/Vista/7. |
---|
[78b5dfe7] | 44 | ogWindowsBootParameters $1 $2 |
---|
[b0ff94d] | 45 | # Registrar en Windows que la partición indicada es su nueva unidad C:\ |
---|
[78b5dfe7] | 46 | ogWindowsRegisterPartition $1 $2 C $1 $2 |
---|
[b0ff94d] | 47 | fi |
---|
| 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.