summaryrefslogtreecommitdiff
path: root/TODO
blob: 62ab451b49c928d98878cee3dfc0efd47d222aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
See also the FIXME's and TODO's in the code.


ALPHA PHASE:
* setup bugtracker/roadmap thingie
* check everywhere that if users cancels something, we return 1, empty string behavior etc
* core/interactive: fix workaround needed for installpkg exitcode
* core/interactive: keymap and timezone settings from installer dan't not go in $target/etc/rc.conf
* dm_crypt unlock at boot is in qwerty.
* after unlocking dm_crypt, FS check fails (reiserfs, must try other)
* core/quickinst: figure out what needs to be done and do it.
* find a way to make _cli_ask_checklist still userfriendly for long lists.. maybe we should just propose/ask to use dia if the list is too long
* lib things sometimes call die_error but we go back to the menu.. or something.. i think
* automatically configure grub for dm_crypt and lvm
* move "/tmp/pacman.conf" to runtime directory and variablize everywhere
* hmm wasn't there a hwdetect/hwd or something in /arch/setup? this seems to have disappeared.
* shouldn't we put /etc/hostname in 'configure system' ? ASKDEV
* a nice way to be able to "inject" functions/logic without:
  * needing to redefine phases with only 1 entry different (duplicate code is not nice, less maintainable etc)
  * override worker functions which are 90% copy-pasted because the parent functionality is mostly okay, but not exactly what we want
  useful for: profiles for the automatic procedures, or all other procedures
  -> optional pre/post callbacks (for workers and phases)?
  -> disadvantages?
     * ended_ok must comprise callbacks too.. or if callback didn't exit cleanly, maybe we should update the exit code of the worker/phase
     * we lose semantics: a function usually has a better suited name then 'pre_<something else>'.
       -> maybe we should in the callback do an execute call for another worker, then we also can check it's exitcode in a good way
       -> too. although that's only good for separate functions, not the 'copypaste 90% and add 10% to the same worker scenario'
  -> phases are arrays.. adding elements at the back is easy.  for in the middle, we could maybe write some functions to add a worker before/after another in a phase
* mirrorlist config doesn't change after selecting mirror
* 'keep in mind trottled' geen separate screen
* cool, network setting coping into target/rc.conf seems to work wih aif. at least for dhcp.. it even asks nicely
* split up lib-ui as sep project, make a generic 'LIF' project,..
* in usage, procedure specific opts points to parent profile when using inheritance
* we may have an issue with ftp based installation where package installation works fine, however it tries to die instead of 'package installation complete' but it can't die because the --textbox fails in show_warning
* ( only in experimental?) grub sedding sometimes does, and sometimes doesn't work. default config remains (eg /dev/hda3), sometimes an incorrect UUID is generated
* debug "categories" (ui, disk,flowcontrol,...) so you can grep (-v) on what you want + make sure enough+correct debugging is everywhere
* the old installer asked a lot of questions before actually configuring the system, eg like 'do you need support for booting from nfs/softraid/lvm2/encrypted, custom dst file?' etc.\
  do we still need this? why (not)?, and a select tag thingie would be nicer imho
* refactor all pacman stuff (modularize/functionize etc)


BETA PHASE:
* find a way to not have to preload libs and stuff, only load them when needed. -> faster start of install program
* fix everything
* if dhcpd already runs for $reason, the installer will try again @ configure network and fail.
  i tried killall dhcpd, killall -9 dhcpd first but that didn't help: it can't kill the process or something...
  I can also add something like for iface in `moo` (or only the one selected iface); do ifconfig $iface down;
  ifconfig $iface up; done, and then dhcpd again
* core/interactive: do not check hard for the dependencies. a user could really know what he's doing or need to reboot after partitioning a disk and
skip that check or something.  Alternatively, maybe just show which steps are done successfully in the main menu
* support maybe ntp to set clock
* auto-configure mkinitcpio.conf for dm_crypt and lvm

PRODUCTION PHASE: be the primary installer.  deprecate /arch/setup and /arch/quickinst
* fix everything even more
* bribe devs
* core/interactive: do pacman -Sy in the background during early phases, to lessen the wait period before selecting packages
* write bash completion thing for aif modules/procedures
* add dmraid/mdadm support -> patches welcome.  i don't care about this. 
* check if it would be useful to support kickstart config files.  we can look at quickstart for that http://dev.gentoo.org/~agaffney/quickstart.php

SOMEDAY/MAYBE/RANDOM THOUGHTS:
* the quickinst assumes the user did some stuff by himself and does some
after-processing.  Would it be useful to have a procedure that always tells
the user what to do (manually) ? -> ASKDEV
* profiles like 'desktop','server' (~-> package list, configs, disk setup,..) are crossconcerns
compared to procedures (which are about "how" the installation goes:
prescripted, autodetection, interactive,...).
support for profiles could be built in certain procedures), maybe by supplying extra commandline
arguments to the procedure or asking a few questions.
For automatic procedures, a profile could be the fundamental entitiy,
whereas for interactive procedures it could provide some other defaults.
* all dialog windows are equally sized.  noone cares, right?
* we run mkinitcpio twice: one while installing kernel packages, once after configuring system (mkinitcpio.conf)
configuring the system (mkinitcpio.conf). can we optimize this?
* core/interactive -> install packages -> dependency cycles with glibc.  not
a problem? -> ASKDEV


WORRIES FOR MAYBE NO GOOD REASON
* base procedure is mostly to serve other procedures.  If we need to do much
work to implement something in the base procedure that we will probably
never use in other procedures, we're doing something wrong.  If that ever
happens (not likely I think), let's rethink what the base procedure should really be.

* instead of every procedure using and overriding the 'base' procedure,
we should maybe have even more flexibilty to take parts from different, specific procedures.
eg: dieter procedure maybe wants to use something interactive. or base procedure wants to do something
from interactive profile (Will this really happen?)
interactive functions maybe dont belong in a procedure?
-> depend_procedure good enough? or do we need more fine-grained dependencies (take function foo from procedure bar from module baz).
for now let's try like this.. -> we can call explicit functions from libraries from modules.. so then just stick it in a lib ->
  lots of stuff can go into lib-ui, making the procedure itself just the
  'execution plan'.. sounds good actually.
problem with this is functions can have the same names (or you need to prepend modulename always, but that's not clean + 'fallback'/overriding doesn't work well anymore. 
alternative -> each lib is a directory, each function in a file, make it possible to source all libs, one lib, or one function from one lib