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.
- Timestamp:
-
May 4, 2011, 10:27:25 PM (14 years ago)
- Author:
-
adv
- Comment:
-
ogclient "Using UnionFS: BusyBox? and SquashFS together"
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v33
|
v34
|
|
20 | 20 | 1. Los elementos de la primera etapa se cargan mediante un gestor de arranque, dependiendo del contendor(cd,dvd,usb,particionCache,red) se usuará el más idóneo (p.e isonlinux, grub, grub4dos, gpxe). |
21 | 21 | 1. El inicializador de opengnsys ubicado en el initrd (boot=oginit) detectará donde se ubica el sistema raíz (segunda etapa), y lo incluirá como tal. |
| 22 | |
| 23 | Mas info sobre "Using UnionFS: BusyBox and SquashFS together" http://lwn.net/Articles/219827/ |
22 | 24 | |
23 | 25 | == Instalación == |
… |
… |
|
67 | 69 | * Fase 8. Generación del sistema raiz en sqfs. |
68 | 70 | |
| 71 | == Incorporación del fichero .sqfs (proceso instalación de OpenGnsys) en un fichero .img para su posterior modificación == |
| 72 | NOTA: este subapartado no está terminado de documentar |
| 73 | {{{ |
| 74 | export OGCLIENTBASEDIR=/var/lib/tftpboot/ogclient/; |
| 75 | export OGCLIENTFILE=${OGCLIENTBASEDIR}ogclient.img; |
| 76 | export OGCLIENTMOUNT=${OGCLIENTBASEDIR}ogclientmount; |
| 77 | export OGCLIENTSIZEMB=1900; |
| 78 | export OGCLIENTLABEL=ogClient; |
69 | 79 | |
| 80 | mkdir -p $OGCLIENTMOUNT; |
| 81 | dd if=/dev/zero of=$OGCLIENTFILE bs=1048576 count=$OGCLIENTSIZEMB; |
| 82 | DISKLOOP=$(losetup -f); |
| 83 | losetup $DISKLOOP $OGCLIENTFILE; |
| 84 | echo -e "n\np\n1\n\n\nt\n83\nw" | fdisk $DISKLOOP; |
| 85 | losetup -d $DISKLOOP ; |
| 86 | PARTLOOP=$(losetup -f); |
| 87 | losetup -o 32256 $PARTLOOP $OGCLIENTFILE && mkfs.ext3 -b 4096 -L $OGCLIENTLABEL $PARTLOOP; |
| 88 | losetup -d $PARTLOOP ; |
| 89 | losetup -d $PARTLOOP ; |
| 90 | |
| 91 | mount | grep $OGCLIENTMOUNT || mount $OGCLIENTFILE $OGCLIENTMOUNT -o loop,offset=32256; |
| 92 | |
| 93 | unsquashfs -d /opt/opengnsys/tftpboot/ogclient/ogclientmount/ -f /opt/opengnsys/tftpboot/ogclient/ogclient.sqfs ; |
| 94 | umount $OGCLIENTMOUNT; |
| 95 | echo "fin"; |
| 96 | |
| 97 | |
| 98 | }}} |
| 99 | |
70 | 100 | |
71 | 101 | |