close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
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
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | # Script de ejemplo para arancar un sistema operativo instalado. |
|---|
| 3 | # Nota: se usa como base para el programa de arranque de OpenGnsys Admin. |
|---|
| 4 | |
|---|
| 5 | PROG="$(basename $0)" |
|---|
| 6 | if [ $# -lt 2 -o $# -gt 3 ]; then |
|---|
| 7 | ogRaiseError $OG_ERR_FORMAT "Formato: $PROG ndisco nfilesys [str_kernel str_initrd str_kernelparams]" |
|---|
| 8 | exit $? |
|---|
| 9 | fi |
|---|
| 10 | |
|---|
| 11 | # Comprobar errores. |
|---|
| 12 | PART=$(ogDiskToDev "$1" "$2") || exit $? |
|---|
| 13 | ogMount $1 $2 &>/dev/null || exit $? |
|---|
| 14 | |
|---|
| 15 | echo "[0] Inicio del proceso de arranque." |
|---|
| 16 | |
|---|
| 17 | if which bootOsCustom &>/dev/null; then |
|---|
| 18 | echo "[10] Configuración personalizada del inicio." |
|---|
| 19 | bootOsCustom $@ |
|---|
| 20 | fi |
|---|
| 21 | |
|---|
| 22 | echo "[70] Desmontar todos los sistemas de archivos." |
|---|
| 23 | sync |
|---|
| 24 | for (( i=1; i <= $(ogDiskToDev | wc -w); i++ )); do |
|---|
| 25 | ogUnmountAll $i &>/dev/null |
|---|
| 26 | done |
|---|
| 27 | echo "[80] Desmontar cache local." |
|---|
| 28 | ogUnmountCache |
|---|
| 29 | echo "[90] Arrancar sistema operativo." |
|---|
| 30 | ogBoot "$@" |
|---|
Note: See
TracBrowser
for help on using the repository browser.