Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398467 - [patch] sys-kernel/genkernel uses old versions of device-mapper, dmraid; busybox config too minimalistic
Summary: [patch] sys-kernel/genkernel uses old versions of device-mapper, dmraid; busy...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 04:08 UTC by Tomasz Wasiak
Modified: 2012-10-13 23:26 UTC (History)
0 users

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


Attachments
Patch replacing busybox 1.18.1 with 1.18.5. (genkernel-3.4.22.1-busybox-1.18.5.patch,128.53 KB, patch)
2012-01-11 04:10 UTC, Tomasz Wasiak
Details | Diff
Patch replacing dmraid 1.0.0.rc14 with 1.0.0.rc16-3 (genkernel-3.4.22.1-dmraid-1.0.0.rc16-3.patch,1.63 KB, patch)
2012-01-11 04:11 UTC, Tomasz Wasiak
Details | Diff
Patch replacing lvm 2.02.74 with 2.02.88 (genkernel-3.4.22.1-lvm2-2.02.88.patch,6.63 KB, patch)
2012-01-11 04:12 UTC, Tomasz Wasiak
Details | Diff
Patch replacing mdadm 3.1.4 with 3.1.5. (genkernel-3.4.22.1-mdadm-3.1.5.patch,1.19 KB, patch)
2012-01-11 04:14 UTC, Tomasz Wasiak
Details | Diff
Patch for genkernel 3.4.22.1 ebuild (ebuild-3.4.22.1-newtools.patch,1.20 KB, patch)
2012-01-11 04:16 UTC, Tomasz Wasiak
Details | Diff
Patch for genkernel 3.4.22.1 ebuild. (ebuild-3.4.22.1-newtools.patch,1.12 KB, patch)
2012-01-11 04:17 UTC, Tomasz Wasiak
Details | Diff
Patch for genkernel live ebuild. (ebuild-9999-newtools.patch,1.11 KB, patch)
2012-01-11 04:17 UTC, Tomasz Wasiak
Details | Diff
Different busybox default configuration (patch). (genkernel-3.4.22.1-busybox_config.patch,57.44 KB, patch)
2012-01-11 04:19 UTC, Tomasz Wasiak
Details | Diff
Fixed patch replacing busybox 1.18.1 with 1.18.5. (genkernel-3.4.22.1-busybox-1.18.5.patch,128.55 KB, patch)
2012-01-12 03:36 UTC, Tomasz Wasiak
Details | Diff
Fixed different busybox default configuration (patch). (genkernel-3.4.22.1-busybox_config.patch,57.30 KB, patch)
2012-01-12 03:39 UTC, Tomasz Wasiak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Wasiak 2012-01-11 04:08:36 UTC
Genkernel still uses old version of software.
I will attach few patches replacing them with updated versions.
I will also attach a patch with default busybox configuration file (for busybox-1.18.5) which is in my opinion much better suited to use as a rescue tool (in initramfs). This version could also be used with netboot.
Ebuild patches included.

Reproducible: Always

Steps to Reproduce:
Just compare software versions with those in portage...
Actual Results:  
busybox: 1.18.1 -> 1.18.5
device-mapper: 1.02.22 -> 1.02.28
dmraid: 1.0.0.rc14 -> 1.0.0.rc16-3
mdadm: 3.1.4 -> 3.1.5
e2fsprogs: 1.41.14 -> 1.42
fuse: 2.7.4 -> 2.8.6
lvm: 2.02.74 -> 2.02.88
unionfs-fuse: 0.22 -> 0.24

Expected Results:  
I had issues with those old device-mapper/dmraid and mdadm versions so I am replacing them with newer on all of my machines.

Patches applies to 3.4.22.1 and 3.4.22-2-g8a91222
Comment 1 Tomasz Wasiak 2012-01-11 04:10:09 UTC
Created attachment 298573 [details, diff]
Patch replacing busybox 1.18.1 with 1.18.5.

Patch replacing busybox 1.18.1 with 1.18.5. Includes stock genkernel busybox configuration files remade with 1.18.5.
Comment 2 Tomasz Wasiak 2012-01-11 04:11:40 UTC
Created attachment 298575 [details, diff]
Patch replacing dmraid 1.0.0.rc14 with 1.0.0.rc16-3

Patch replacing dmraid 1.0.0.rc14 with 1.0.0.rc16-3. Includes patch for dmraid to link statically.
Comment 3 Tomasz Wasiak 2012-01-11 04:12:53 UTC
Created attachment 298577 [details, diff]
Patch replacing lvm 2.02.74 with 2.02.88

Patch replacing lvm 2.02.74 with 2.02.88.
Comment 4 Tomasz Wasiak 2012-01-11 04:14:05 UTC
Created attachment 298579 [details, diff]
Patch replacing mdadm 3.1.4 with 3.1.5.

Patch replacing mdadm 3.1.4 with 3.1.5.
Comment 5 Tomasz Wasiak 2012-01-11 04:16:44 UTC
Created attachment 298581 [details, diff]
Patch for genkernel 3.4.22.1 ebuild

Patch for genkernel 3.4.22.1 ebuild.
Comment 6 Tomasz Wasiak 2012-01-11 04:17:16 UTC
Created attachment 298583 [details, diff]
Patch for genkernel 3.4.22.1 ebuild.

Patch for genkernel 3.4.22.1 ebuild.
Comment 7 Tomasz Wasiak 2012-01-11 04:17:47 UTC
Created attachment 298585 [details, diff]
Patch for genkernel live ebuild.

Patch for genkernel live ebuild.
Comment 8 Tomasz Wasiak 2012-01-11 04:19:50 UTC
Created attachment 298587 [details, diff]
Different busybox default configuration (patch).

Different busybox default configuration. This patch should be applied on top of my busybox-1.18.5 patch.
Comment 9 Sebastian Pipping gentoo-dev 2012-01-12 03:27:11 UTC
Comment on attachment 298577 [details, diff]
Patch replacing lvm 2.02.74 with 2.02.88

Marking patch genkernel-3.4.22.1-lvm2-2.02.88.patch obsolete as it just removes files that we could keep shipping to serve potential special needs of our users.
Comment 10 Sebastian Pipping gentoo-dev 2012-01-12 03:27:42 UTC
Comment on attachment 298579 [details, diff]
Patch replacing mdadm 3.1.4 with 3.1.5.

Same for genkernel-3.4.22.1-mdadm-3.1.5.patch
Comment 11 Sebastian Pipping gentoo-dev 2012-01-12 03:31:08 UTC
Tomasz, could you elaborate on the changes to the busybox config one at a time?  We need to understand the reason behind every single switch you made. In interest of both of us maybe you can reduce the number of changes to the busybox config to the essential minimum. Thanks!
Comment 12 Tomasz Wasiak 2012-01-12 03:36:50 UTC
Created attachment 298697 [details, diff]
Fixed patch replacing busybox 1.18.1 with 1.18.5.

Fixed previous version of same patch (mdstart omitted in busy-config).
Comment 13 Tomasz Wasiak 2012-01-12 03:38:10 UTC
I will write information about changes in busybox configuration file later...
Comment 14 Tomasz Wasiak 2012-01-12 03:39:23 UTC
Created attachment 298699 [details, diff]
Fixed different busybox default configuration (patch).

Fixed previous version of same patch (mdstart omitted in busy-config).
Comment 15 Tomasz Wasiak 2012-01-12 03:57:03 UTC
Patch which replaces busybox 1.18.1 with 1.18.5 does not change genkernel default configuration files. They were just recreated with busybox-1.18.5 same way as genkernel would recreate them (yes '' 2>/dev/null | make oldconfig).
In my opinion this should be done so it is easier to understand/tweak busybox binary included in initramfs.
Second patch which contains my proposed unified (default and netboot) busybox configuration file contains many changes which in my opinion produces busybox much better suited to use in netboot or rescue (initramfs) environment:
1. Support for verbose usage/help in applets 
2. Support for unicode
3. Little bit fancier (fancy prompt, bigger history, ls supports colors and recursion...)
4. Support for all modern compression utilities
5. Support for checksum utilities
6. Support for dos2unix/unix2dos
7. Support for more utilities usually found in any linux distribution (mainly useful for netboot)
8. Support for patch/diff
9. Extended find
10. Removed applets not useful under 2.6/3.x kernels
11. Much more network utilities, removed some which are not useful in netboot nor rescue environment (for example udhcpd, ntpd server, lpd)
12. Support for syslog
Comment 16 Sebastian Pipping gentoo-dev 2012-01-13 21:57:04 UTC
Comment on attachment 298583 [details, diff]
Patch for genkernel 3.4.22.1 ebuild.

+*genkernel-3.4.23 (13 Jan 2012)
+
+  13 Jan 2012; Sebastian Pipping <sping@gentoo.org> +genkernel-3.4.23.ebuild:
+  Bump to genkernel 3.4.23, busybox 1.19.3, e2fsprogs 1.42, fuse 2.8.6, lvm
+  2.02.88, unionfs-fuse 0.24
+

Busybox config has not been touched, yet.
Also left to do: device-mapper, dmraid, mdadm
Comment 17 Sebastian Pipping gentoo-dev 2012-01-13 23:25:48 UTC
31c3c7c Update busybox config using "yes '' | make oldconfig"
5feb521 Busybox config: Enable verbose usage

I'm unsure about the other proposals.  On the desktop busybox is only operating in the background where many features may be not needed.  I am not familar with the netboot fraction of genkernel.
Comment 18 Tomasz Wasiak 2012-01-14 01:38:25 UTC
In my opinion all those feature are useless on desktop setup if everything works ok. But they could be very useful when system breaks. Busybox in initramfs could be a tool to solve many system failures if equipped with proper features.

BTW. I am not sure if mdstart works properly with busybox 1.19. I had tried once in the past and it failed on one of my systems so used only 1.18.5.
Comment 19 Sebastian Pipping gentoo-dev 2012-01-14 23:23:53 UTC
(In reply to comment #18)
> BTW. I am not sure if mdstart works properly with busybox 1.19. I had tried
> once in the past and it failed on one of my systems so used only 1.18.5.

Thanks for mentioning that.  Just pushed this:

  # git log --oneline | head -n 2 | tac
  5feb1fe Port mdstart patch to busybox 1.19.3
  f84f42b Re-activate mdstart in busybox config
Comment 20 Sebastian Pipping gentoo-dev 2012-01-15 00:38:06 UTC
(In reply to comment #16)
> Busybox config has not been touched, yet.
> Also left to do: device-mapper, dmraid, mdadm

mdadm done.


+*genkernel-3.4.23.1 (15 Jan 2012)
+
+  15 Jan 2012; Sebastian Pipping <sping@gentoo.org>
+genkernel-3.4.23.1.ebuild,
+  genkernel-9999.ebuild:
+  Bump to genkernel 3.4.23.1, mdadm 3.1.5
+
Comment 21 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 01:22:07 UTC
Comment on attachment 298575 [details, diff]
Patch replacing dmraid 1.0.0.rc14 with 1.0.0.rc16-3

dmraid done.

Your device-mapper update is entirely bogus. It was merged to LVM2 by upstream in 2010, I've dropped it entirely and set it so the compile function triggers LVM2 instead.
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-10-13 23:26:00 UTC
Done already and no response from user.