File:  [NetBSD Developer Wiki] / wikisrc / projects / project / sysinst-enhancements.mdwn
Revision 1.4: download - view: text, annotated - select for diffs
Sun Mar 18 10:58:04 2012 UTC (2 years, 1 month ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by martin

[[!template id=project

title="Sysinst enhancements"

contact="""
[tech-install](mailto:tech-install@NetBSD.org)
"""

mentors="""
[Martin Husemann](mailto:martin@NetBSD.org)
"""

category="userland"
difficulty="easy"
duration="3 months"

description="""
The goal of this project is to enhance the NetBSD system installer (sysinst) to provide additional support for (in order):

* partition disks using GPT
* prepare multiple disks
* combine multiple partitions to raid/lvm volumes
* encrypt partitions via cgd
* other enhancements

The installer currently supports installing the system to any available single disk. It is possible to select which parts (distribution sets) of the system to install, and also to customise the disk partition layout. Sysinst can also use vnode pseudo disks, so can be tested without the need to re-install the host system.

The first goal is to allow partitioning disks using the GUID partition table (GPT). The current partitioning code is tight heavily to the BSD disklabel. Fixing it is straight forward, but both methods have to be offered and only some architectures can boot from GPT disks.

The second goal is to allow preparing several disks. This part would also be usefull (see "other enhancements" below) as a stand-alone tool. Various disks may be partitioned using different shemes, for example when the boot disk can not use GPT, but secondary (large) disks should use it. This part also is a direct prerequisite for the following one.

The third goal is to (optionally) create logical volumes from multiple partitions or disks, either using raidframe or LVM. This includes making the volumes bootable, if possible.

The fourth goal is to add support for creating and installing on to cgd (encrypted) partitions. The initial support will not be for the boot partition, but other partitions should be supported.

The other enhancements that might be possible are (not in priority order):

#### user interface
* customise colours
* add "back" and "forward" menu options
* run parts of the installer independently (e.g. disk partitioning, set installation)

#### cgd enhancements
* add the ability to encrypt the whole disk and to enter the decryption key at boot time

#### automated test setup
* add the ability to install Anita for automated testing 

The candidate must have:

* familiarity with the system installer. You should have used sysinst to install the system.
* familiarity with C programming. The system installer program consists of C code.
* a test system, preferably with a 2nd bootable device.

The following would also be useful:

* familiarity with NetBSD.
* familiarity with user interface programming using curses.

### References:

* [sysinst source (opengrok)](http://cvsweb.netbsd.org/bsdweb.cgi/src/distrib/utils/sysinst/)
* [vnconfig manual page](http://netbsd.gw.com/cgi-bin/man-cgi?vnconfig++NetBSD-current)
* [raidctl manual page](http://netbsd.gw.com/cgi-bin/man-cgi?raidctl++NetBSD-current)
* [cgdconfig manual page](http://netbsd.gw.com/cgi-bin/man-cgi?cgdconfig++NetBSD-current)
* [LVM on NetBSD](http://www.netbsd.org/docs/guide/en/chap-lvm.html)
* [Anita automated testing](http://www.gson.org/netbsd/anita/)
"""
]]

[[!tag gsoc]]

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb