Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86241 - GNAP 2 Ideas Tracker
Summary: GNAP 2 Ideas Tracker
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: GNAP (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Network Appliance Bugs
URL: http://embedded.gentoo.org/gnap.xml
Whiteboard:
Keywords: Tracker
Depends on:
Blocks:
 
Reported: 2005-03-22 04:39 UTC by Thierry Carrez (RETIRED)
Modified: 2005-08-28 10:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rw-sync.sh script to save files to rw part (rw-sync.sh,3.27 KB, application/x-shellscript)
2005-07-05 07:19 UTC, José Alberto Suárez López (RETIRED)
Details
rw-sync.sh 0.3: added bak support, size info, an bug fixed (rw-sync.sh,4.00 KB, application/x-shellscript)
2005-07-05 09:03 UTC, José Alberto Suárez López (RETIRED)
Details
rw-sync.sh 0.4 (md5sum and optimizations) (rw-sync.sh,4.63 KB, application/x-shellscript)
2005-07-06 04:07 UTC, José Alberto Suárez López (RETIRED)
Details
rw-sync.sh (conftest added) (rw-sync.sh,4.92 KB, application/x-shellscript)
2005-07-06 04:26 UTC, José Alberto Suárez López (RETIRED)
Details
rw-sync.sh 0.5 (added space check) (rw-sync.sh,5.60 KB, application/x-shellscript)
2005-07-11 05:45 UTC, José Alberto Suárez López (RETIRED)
Details
init.d/overlay patch (add tgz and md5 support) (overlay.patch,1.64 KB, patch)
2005-07-12 05:03 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
overlay patch (fixed) (overlay.patch,1.65 KB, patch)
2005-07-12 05:08 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
over.ay patch (more fixes) (overlay.patch,1.65 KB, patch)
2005-07-12 06:29 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
rw-sync.sh 0.5.1 (lil fixes) (rw-sync.sh,5.85 KB, application/x-shellscript)
2005-07-12 06:32 UTC, José Alberto Suárez López (RETIRED)
Details
overlay.patch (more fixes) (overlay.patch,1.62 KB, patch)
2005-07-12 08:07 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
overlay patch (a new fix) (rw-sync.sh,5.88 KB, patch)
2005-07-12 08:15 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
rw-sync.sh 0.5.2 (a lil fix) (rw-sync.sh,5.87 KB, application/x-shellscript)
2005-07-12 08:29 UTC, José Alberto Suárez López (RETIRED)
Details
overlay.patch (more fixes) (overlay.patch,1.84 KB, patch)
2005-07-12 09:07 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
overlay.patch (latest fixes for today :P) (overlay.patch,1.96 KB, patch)
2005-07-12 09:21 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
overlay.pacth (this really works) (overlay.patch,1.90 KB, patch)
2005-07-13 03:44 UTC, José Alberto Suárez López (RETIRED)
Details | Diff
conf.d/overlay (conf.d.overlay,240 bytes, application/octet-stream)
2005-07-13 03:45 UTC, José Alberto Suárez López (RETIRED)
Details
rw-sync.sh 0.6 (fixes and conf.d/overlay use) (rw-sync.sh,5.87 KB, application/x-shellscript)
2005-07-13 03:46 UTC, José Alberto Suárez López (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Carrez (RETIRED) gentoo-dev 2005-03-22 04:39:26 UTC
Here are my current thoughts for GNAP 2 :

POST-OVERLAYING
Currently there is no way of modifying the overlayed configuration, short of rebuilding the ISO file or reburning the CF. The idea is to support multiple successive overlay sources (Floppy, USB key, network-fetched tarball) that would get optionally triggered as soon as possible (when network is up, fetch the network conf, etc.). That way, part of the configuration would be overlaid from not-burned-in sources.
This would be implemented as new overlay-like rc-scripts, activated and configured from overlay.conf, that would run as soon as possible.

CONFLETS
A single overlay directory makes it difficult to reuse standard configuration options. Allowing gnap_overlay to take multiple directories and tbz2 files as sources for the overlay file on the ISO would allow more flexibility. For example, a typical shorewall configuration could be provided as a standard "conflet" that people could easily include into their own ISOs.
This would be implemented by enriching gnap_overlay to support multiple sources rather than just one directory.

MODULARITY
Currently you can't easily add optional features in the provided GNAP core, the only way is to rebuild a core completely. Feature additions (like rp-pppoe or firehol) make the core heavier while not being used by everyone. The idea is to allow to customize core contents before overlaying the configuration in. Several "modules" could be produced along with a basic core.
Problems to solve: squashfs remastering would require root rights (breaks the overlay-needs-no-root concept), dependencies issues when multiple modules need the same dep package, how to integrate module building into the catalyst process...

DISKLESS SUPPORT
PXE support would allow a completely diskless GNAP system that would fetch everything from the network.
Not sure how I would do it, need to learn how it works first.
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-05-21 10:31:54 UTC
CONFLETS was done in 1.5
MODULARITY will be done in 1.7

Another feature that will appear in 1.7 :

R/W OVERLAY
Sometimes you need to change the configuration but don't want to burn a new CF
(or reboot). R/W overlay allows to overlay from a specific device at boot
(/dev/floppy or a second partition on the CF) and to push back modified files to
that partition later on.

POST-OVERLAYING using floppy will be done in 1.7, the rest should appear in 1.8.
Comment 2 José Alberto Suárez López (RETIRED) gentoo-dev 2005-06-13 07:19:17 UTC
Sugests:
 * integrate sfdisk in gnap
 * root password parameter
Comment 3 José Alberto Suárez López (RETIRED) gentoo-dev 2005-06-13 08:02:39 UTC
More suggest:
 - use "genkernel --maxkernpackage=" to create kernel extensions for gnap
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2005-06-21 06:35:48 UTC
Other ideas: 
- Reduced portage snapshot to ship with each version (to facilitate extensions
and rebuild).
- Full distcc support
Comment 5 José Alberto Suárez López (RETIRED) gentoo-dev 2005-06-30 07:13:34 UTC
New Feature: Kernel Extensions

Similar to other gnap extensions using "genkernel --maxkernpackage=" to create
kernel extensions for gnap. So you can change the kernel of gnap without rebuild
gnap-core.

Comment 6 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-05 07:19:15 UTC
Created attachment 62668 [details]
rw-sync.sh script to save files to rw part
Comment 7 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-05 09:03:24 UTC
Created attachment 62679 [details]
rw-sync.sh 0.3: added bak support, size info, an bug fixed

* now with -b you can do bak of older conf
* more info in the script (comments and size fo the tarballs)
* now the tarball is made en mem not in CF
Comment 8 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-06 04:07:55 UTC
Created attachment 62743 [details]
rw-sync.sh 0.4 (md5sum and optimizations)

version 0.4

* lilttle fixes and optimizations
* now the config file is stroed by default in /etc/rw-sync.cgf so must be added
to itself to the file list if you want to save it
* the script generate md5sum's for the tarball file and backup file. Koon
remember to check the md5sum before load the files in init
Comment 9 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-06 04:26:33 UTC
Created attachment 62745 [details]
rw-sync.sh (conftest added)

a lil test added to check if CONFFIFLE will be saved or not. If -v it will warn
the user.
Comment 10 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-06 07:02:27 UTC
add "-s <bauds>" option to gnap_overlay
Comment 11 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-11 05:45:23 UTC
Created attachment 63128 [details]
rw-sync.sh 0.5 (added space check)

rw-sync.sh 0.5

* now checks fro free space
Comment 12 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 05:03:24 UTC
Created attachment 63224 [details, diff]
init.d/overlay patch (add tgz and md5 support)

you need this patch to restore the files generated by rw-sync.sh
Comment 13 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 05:08:08 UTC
Created attachment 63226 [details, diff]
overlay patch (fixed)
Comment 14 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 06:29:49 UTC
Created attachment 63232 [details, diff]
over.ay patch (more fixes)
Comment 15 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 06:32:14 UTC
Created attachment 63233 [details]
rw-sync.sh 0.5.1 (lil fixes)
Comment 16 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 07:10:07 UTC
create a new file to define services to add to startup
Comment 17 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 08:07:51 UTC
Created attachment 63234 [details, diff]
overlay.patch (more fixes)
Comment 18 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 08:15:43 UTC
Created attachment 63235 [details, diff]
overlay patch (a new fix)
Comment 19 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 08:29:28 UTC
Created attachment 63237 [details]
rw-sync.sh 0.5.2 (a lil fix)
Comment 20 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 09:07:24 UTC
Created attachment 63239 [details, diff]
overlay.patch (more fixes)
Comment 21 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-12 09:21:09 UTC
Created attachment 63241 [details, diff]
overlay.patch (latest fixes for today :P)
Comment 22 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-13 03:44:34 UTC
Created attachment 63300 [details, diff]
overlay.pacth (this really works)

now use conf.d/overlay
Comment 23 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-13 03:45:26 UTC
Created attachment 63301 [details]
conf.d/overlay

file with the VARS needed by rw-sync.sh and overlay
Comment 24 José Alberto Suárez López (RETIRED) gentoo-dev 2005-07-13 03:46:16 UTC
Created attachment 63302 [details]
rw-sync.sh 0.6 (fixes and conf.d/overlay use)
Comment 25 Thierry Carrez (RETIRED) gentoo-dev 2005-07-13 06:53:37 UTC
rw-sync.sh and corresponding overlay patches have been added to CVS, as well as
support for portage snapshot files and distcc.
Comment 26 Thierry Carrez (RETIRED) gentoo-dev 2005-08-10 04:31:29 UTC
Version 1.8 ships with:
- root password initialization through etc/gnap/chpasswd
- support for kernel extensions
- Reduced portage snapshot to ship with each version (to facilitate extensions
and rebuild).
- Full distcc support
- rw-sync.sh
- add "-s <bauds>" option to gnap_overlay
- create a new file to define services to add to startup (etc/gnap/start_services)

For future improvements, pleaes create new bugs