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
Rev | Line | |
---|
[00a2c2c] | 1 | #!/bin/sh -e |
---|
| 2 | # initramfs hook for OpenGnsys |
---|
| 3 | |
---|
| 4 | #@file oghooks |
---|
| 5 | #@brief configuración initrd para OpenGnSys |
---|
| 6 | #@warning |
---|
| 7 | #@version 0.9 - estrucura opengnsys, bash-static, unionfs, atheros |
---|
| 8 | #@author Antonio J. Doblas Viso. |
---|
| 9 | #@date 2010/05/24 |
---|
| 10 | #*/ |
---|
| 11 | |
---|
| 12 | PREREQ="og" |
---|
| 13 | |
---|
| 14 | # Output pre-requisites |
---|
| 15 | prereqs() |
---|
| 16 | { |
---|
| 17 | echo "$PREREQ" |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | case "$1" in |
---|
| 21 | prereqs) |
---|
| 22 | prereqs |
---|
| 23 | exit 0 |
---|
| 24 | ;; |
---|
| 25 | esac |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | . /usr/share/initramfs-tools/hook-functions |
---|
| 29 | |
---|
| 30 | mkdir -p ${DESTDIR}/scripts/og-top |
---|
| 31 | mkdir -p ${DESTDIR}/scripts/og-premount |
---|
| 32 | mkdir -p ${DESTDIR}/scripts/og-bottom |
---|
| 33 | mkdir -p ${DESTDIR}/mnt/ |
---|
| 34 | mkdir -p ${DESTDIR}/net/ |
---|
| 35 | mkdir -p ${DESTDIR}/usr |
---|
| 36 | mkdir -p ${DESTDIR}/var/lock |
---|
| 37 | mkdir -p ${DESTDIR}/var/log |
---|
| 38 | mkdir -p ${DESTDIR}/opt/opengnsys; |
---|
| 39 | mkdir -p ${DESTDIR}/ogboot; |
---|
| 40 | mkdir -p ${DESTDIR}/boot; |
---|
| 41 | |
---|
| 42 | # Insert basic binaries |
---|
| 43 | copy_exec /bin/bash-static /bin/bash |
---|
| 44 | copy_exec /usr/bin/unionfs-fuse |
---|
| 45 | copy_exec /sbin/mount.cifs |
---|
| 46 | copy_exec /sbin/mount.smbfs |
---|
| 47 | copy_exec /bin/lsmod |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | # Insert OpenGnsys Engine |
---|
| 51 | #mkdir -p ${DESTDIR}/opt/opengnsys/lib/engine |
---|
| 52 | #cp -prv /opt/opengnsys/client/lib/engine ${DESTDIR}/opt/opengnsys/lib/engine |
---|
| 53 | |
---|
| 54 | #rm -fr ${DESTDIR}/lib/modules/2.6.32-21-generic-pae/kernel/drivers/net/atl* |
---|
| 55 | manual_add_modules cifs |
---|
| 56 | manual_add_modules smbfs |
---|
| 57 | manual_add_modules atl1e |
---|
| 58 | manual_add_modules squashfs |
---|
| 59 | manual_add_modules md4 |
---|
[d9905b9] | 60 | manual_add_modules des_generic |
---|
| 61 | manual_add_modules nls_utf8 |
---|
| 62 | |
---|
[00a2c2c] | 63 | |
---|
| 64 | |
---|
| 65 | |
---|
Note: See
TracBrowser
for help on using the repository browser.