Re: How much mem is low, exactly?
Quoting sylvain ferriol ([EMAIL PROTECTED]): > it's because os-prober depends on xfs, ext3, reiserfs,... > > but even in lowmem mode, i don't want to play with dependencies. so if a > module depends on others, d-i will load them. > > but now we can check if dependencies for all udebs are 'really' > dependencies, not just suggests. > i don't know os-prober, but i think it do not depend on fs modules Well, it has to as its purpose is other operating systems recognition by reading their filesystems... A possibility is dropping os-prober in lowmem mode. I guess that most users installing in low memory conditions will be skilled enough for configuring a dual boot later. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How much mem is low, exactly?
W. Borgert wrote: On Fri, Jun 11, 2004 at 01:24:40PM +, W. Borgert wrote: - There is room for improvement: Some tools were installed without my consent/need: os-prober, lilo-installer, nobootloader - I can't remember all, sorry. Also I'm Now I tried again: reiserfs and xfs are downloaded as well, but I did not select those! Cheers, WB it's because os-prober depends on xfs, ext3, reiserfs,... but even in lowmem mode, i don't want to play with dependencies. so if a module depends on others, d-i will load them. but now we can check if dependencies for all udebs are 'really' dependencies, not just suggests. i don't know os-prober, but i think it do not depend on fs modules sylvain -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How much mem is low, exactly?
On Fri, Jun 11, 2004 at 01:24:40PM +, W. Borgert wrote: > - There is room for improvement: Some tools were installed > without my consent/need: os-prober, lilo-installer, > nobootloader - I can't remember all, sorry. Also I'm Now I tried again: reiserfs and xfs are downloaded as well, but I did not select those! Cheers, WB -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How much mem is low, exactly?
Quoting W. Borgert ([EMAIL PROTECTED]): > nobootloader - I can't remember all, sorry. Also I'm > not sure, whether the countrychooser could be optional > for lowmem. IMHO, the goal for lowmem on ia32 should be Countrychooser can probably be optional in lowmem mode. After all, its only purpose is building a valid locale value and lowmem feeds this value (see the recent change I made to it after the new languagechooser broke it) This needs testing, however. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How much mem is low, exactly?
On Fri, Jun 11, 2004 at 01:40:20PM +0200, sferriol wrote: > cd .trunk/installer/build/localudebs ... > dd if=net-drivers.img of=/dev/fd0 That was easy! This patch is good - I can now partition on my 24 MB machine. It seems that the memory limit is now about 21.5 MB (for i486, stone age hardware). Thanks a lot! Issues: - In lowmem mode, the installer now asks some questions more than one time. This is acceptable of course. - The partitioner did not give me the choice 'all in one - recommended for new users', but only 'separate home dirs'. Maybe I did sth. wrong? - There is room for improvement: Some tools were installed without my consent/need: os-prober, lilo-installer, nobootloader - I can't remember all, sorry. Also I'm not sure, whether the countrychooser could be optional for lowmem. IMHO, the goal for lowmem on ia32 should be around 16 MB, depending on the hardware. Questions: - Is there any chance, that Sylvains patch (that works perfectly for me) will be accepted soon? - Is it possible (and worth), to leave out the countrychooser? - Is it possible to not load os-prober, lilo-installer etc. in lowmem mode? Thanks in advance! Cheers, WB -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How much mem is low, exactly?
W. Borgert a écrit : On Thu, Jun 03, 2004 at 03:10:43AM +0200, sylvain ferriol wrote: this is the patch attached I applied the patch and can build anna*.udeb without problems. Where can I find information on how to create installation floppies using this .udeb? cd .trunk/installer/build/localudebs ln -s ../../../packages/my_anna-local.udeb cd .. fakeroot make build_floppy_boot fakeroot make build_floppy_root fakeroot make build_floppy_net-drivers (for net installation) cd dest/floppy dd if=boot.img of=/dev/fd0 dd if=root.img of=/dev/fd0 dd if=net-drivers.img of=/dev/fd0 Better: If such floppies exist somewhere, I would like to download... Thanks in advance! Cheers, WB smime.p7s Description: S/MIME Cryptographic Signature
Re: How much mem is low, exactly?
On Thu, Jun 03, 2004 at 03:10:43AM +0200, sylvain ferriol wrote: > this is the patch attached I applied the patch and can build anna*.udeb without problems. Where can I find information on how to create installation floppies using this .udeb? Better: If such floppies exist somewhere, I would like to download... Thanks in advance! Cheers, WB -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How much mem is low, exactly?
W. Borgert wrote: i have changed anna to enable the user to select what he wants. and anna only download the selected packages (and dependencies too) Could you provide floppy images (boot.img/root.img/net-drivers.img) on some http-accessable place, please? I would like to test it. - there is not enough time to include this patch for release rc1, so according with joey, i will create specific images for very lowmem PCs It would be nice to have the patch in (if it works) - that would lead to better testing than lowmem-specific images, I believe. Cheers, WB this is the patch attached sylvain Index: anna.c === --- anna.c (revision 16600) +++ anna.c (working copy) @@ -6,6 +6,9 @@ #include #include "anna.h" +#define STATUS_FILE "/var/lib/lowmem" +int lowmem=0; + struct debconfclient *debconf = NULL; static char *running_kernel = NULL, *subarchitecture; @@ -69,8 +72,9 @@ { char *choices; int package_count = 0; -di_package *package, *status_package, **package_array; -di_slist_node *node, *node1; +di_package *package, *status_package, **package_array, *test_package; +di_slist_node *node, *node1, *node2; +int reverse_depend=0; config_retriever(); @@ -123,22 +127,48 @@ if (!di_system_package_check_subarchitecture(package, subarchitecture)) continue; -if (((di_system_package *)package)->kernel_version) -{ - if (running_kernel && strcmp(running_kernel, ((di_system_package *)package)->kernel_version) == 0) - { - package->status_want = di_package_status_want_unknown; - di_log (DI_LOG_LEVEL_DEBUG, "ask for %s, matches kernel", package->package); - } - else -continue; -} + di_log (DI_LOG_LEVEL_DEBUG, "lowmem: %d, debconf status: %s", lowmem, debconf->value); + + if (((di_system_package *)package)->kernel_version) + { +if (running_kernel && strcmp(running_kernel, ((di_system_package *)package)->kernel_version) == 0) +{ + package->status_want = di_package_status_want_unknown; + di_log (DI_LOG_LEVEL_DEBUG, "ask for %s, matches kernel", package->package); +} +else + continue; + } + + if (lowmem) { +if (package->priority == di_package_priority_standard +&& ! ((di_system_package *)package)->installer_menu_item) { + /* get only packages which are not dependencies of other packages */ + reverse_depend=0; + for (node1 = (*packages)->list.head; node1; node1 = node1->next) { + test_package = node1->data; + for (node2 = test_package->depends.head; node2; node2 = node2->next) { + di_package_dependency *d = node2->data; + if (d->ptr == package) { +reverse_depend=1; + } + } + } + if (reverse_depend == 0 && ! ((di_system_package *)package)->kernel_version) { + package->status_want = di_package_status_want_unknown; + } + package->priority = di_package_priority_optional; +} + } + if (package->priority >= di_package_priority_standard || is_queued(package)) { package->status_want = di_package_status_want_install; di_log (DI_LOG_LEVEL_DEBUG, "install %s, priority >= standard", package->package); } -else if (((di_system_package *)package)->installer_menu_item) +else if (((di_system_package *)package)->installer_menu_item +&& package->status != di_package_status_installed) /* we don't want to see installed packages +* in choices list*/ { package->status_want = di_package_status_want_unknown; di_log (DI_LOG_LEVEL_DEBUG, "ask for %s, is installer item", package->package); @@ -167,8 +197,12 @@ choices = list_to_choices(package_array); debconf_fset(debconf, ANNA_CHOOSE_MODULES, "seen", "false"); debconf_subst(debconf, ANNA_CHOOSE_MODULES, "CHOICES", choices); -debconf_input(debconf, "medium", ANNA_CHOOSE_MODULES); - +if (lowmem) { +debconf_input(debconf, "high", ANNA_CHOOSE_MODULES); +} +else { +debconf_input(debconf, "medium", ANNA_CHOOSE_MODULES); +} di_free(choices); di_free(package_array); @@ -334,6 +368,11 @@ di_system_init("anna"); + /* test if lowmem is activated */ + if( rename(STATUS_FILE, STATUS_FILE) == 0) { + lowmem=1; + } + if (debconf_get(debconf, "debian-installer/kernel/subarchitecture")) suba
Re: How much mem is low, exactly?
sferriol wrote: [snip] > i have changed anna to enable the user to select what he wants. > and anna only download the selected packages (and dependencies too) > > the current status is: > - i succeed to install in 24Mb (i select plip+partman-auto) > - i do not test with lesser memory (because i use plip for testing and i > currently can not use it, but this will be resolved in few hours) > - of course, the memory depends on which packages you have selected > - there is not enough time to include this patch for release rc1, so > according with joey, i will create specific images for very lowmem PCs There's a life after rc1, d-i development won't suddenly stop then. :-) > i will send you the patch on the list , if someone wants to test it ;) Please do so. Thiemo
Re: How much mem is low, exactly?
> i have changed anna to enable the user to select what he wants. > and anna only download the selected packages (and dependencies too) Could you provide floppy images (boot.img/root.img/net-drivers.img) on some http-accessable place, please? I would like to test it. > - there is not enough time to include this patch for release rc1, so according > with joey, i will create specific images for very lowmem PCs It would be nice to have the patch in (if it works) - that would lead to better testing than lowmem-specific images, I believe. Cheers, WB -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How much mem is low, exactly?
Thiemo Seufer a écrit : W. Borgert wrote: What is the target memory for the lowmem installation? 24 MB seems not to work. I had the hope, that ca. 16 MB would be the limit. 25-45 MB, depending on architecture. Some ideas for improvements: 1. Disable certain downloads/features. IMHO it is OK to have a lowmem install with less features, e.g. LVM, RAID, other FSs than EXT3/EXT2, etc. Who would use a 16 MB machine with SW-RAID? :-) 2. Let the user select downloads/features. If the user does have SCSI, SATA, etc. why download the stuff and eat RAM disk space? 3. Let the user earlier create the partition table and the swap space (and acitvate the latter) and download other udebs later. 4. Use text instead of ncurses for debconf (lowmem is English-only anyway). What do the d-i people think? You may want to read packages/lowmem/README in the SVN repository. The main reason the "lowmem" mode is so ineffective is that nobody did so far the work to make it better. Thiemo i have changed anna to enable the user to select what he wants. and anna only download the selected packages (and dependencies too) the current status is: - i succeed to install in 24Mb (i select plip+partman-auto) - i do not test with lesser memory (because i use plip for testing and i currently can not use it, but this will be resolved in few hours) - of course, the memory depends on which packages you have selected - there is not enough time to include this patch for release rc1, so according with joey, i will create specific images for very lowmem PCs i will send you the patch on the list , if someone wants to test it ;) sylvain smime.p7s Description: S/MIME Cryptographic Signature
Re: How much mem is low, exactly?
W. Borgert wrote: > What is the target memory for the lowmem installation? > 24 MB seems not to work. I had the hope, that ca. 16 MB > would be the limit. 25-45 MB, depending on architecture. > Some ideas for improvements: > > 1. Disable certain downloads/features. IMHO it is OK to >have a lowmem install with less features, e.g. LVM, RAID, >other FSs than EXT3/EXT2, etc. Who would use a 16 MB >machine with SW-RAID? :-) > > 2. Let the user select downloads/features. If the user does >have SCSI, SATA, etc. why download the stuff and eat RAM >disk space? > > 3. Let the user earlier create the partition table and the >swap space (and acitvate the latter) and download other >udebs later. > > 4. Use text instead of ncurses for debconf (lowmem is >English-only anyway). > > What do the d-i people think? You may want to read packages/lowmem/README in the SVN repository. The main reason the "lowmem" mode is so ineffective is that nobody did so far the work to make it better. Thiemo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]