Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331971 - [patch] sys-kernel/genkernel-3.4.10.907 - upgrade busybox
Summary: [patch] sys-kernel/genkernel-3.4.10.907 - upgrade busybox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
: 310785 (view as bug list)
Depends on:
Blocks: 351772
  Show dependency tree
 
Reported: 2010-08-10 03:26 UTC by Craig Andrews
Modified: 2011-02-14 22:43 UTC (History)
2 users (show)

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


Attachments
Updated Ebuild (genkernel-3.4.10.907-r1.ebuild,4.75 KB, text/plain)
2010-09-27 00:28 UTC, Donald R. Gray Jr
Details
diff from previous (genkernel-3.4.10.907.patch,1.43 KB, patch)
2010-09-27 00:30 UTC, Donald R. Gray Jr
Details | Diff
1.17.4-mdadm.diff (1.17.4-mdadm.diff,166.76 KB, patch)
2010-11-29 15:20 UTC, Denis Kaganovich
Details | Diff
1.17.4-mdstart.diff (1.17.4-mdstart.diff,3.36 KB, patch)
2010-11-29 15:21 UTC, Denis Kaganovich
Details | Diff
1.17.4-openvt.diff (1.17.4-openvt.diff,383 bytes, patch)
2010-11-29 15:22 UTC, Denis Kaganovich
Details | Diff
busy-config.patch (busy-config.patch,52.70 KB, patch)
2010-11-29 20:59 UTC, Denis Kaganovich
Details | Diff
busy-config2.patch (busy-config2.patch,37.27 KB, patch)
2010-12-01 13:10 UTC, Denis Kaganovich
Details | Diff
e2fsprogs-ldflags.patch (e2fsprogs-ldflags.patch,541 bytes, patch)
2010-12-04 20:26 UTC, Denis Kaganovich
Details | Diff
busy-config3.patch (busy-config3.patch,37.06 KB, patch)
2010-12-30 13:40 UTC, Denis Kaganovich
Details | Diff
initrd.scripts.patch (initrd.scripts.patch,336 bytes, patch)
2011-01-05 16:16 UTC, Denis Kaganovich
Details | Diff
busybox-migration-1.18.1.patch (busybox-migration-1.18.1.patch,426.48 KB, patch)
2011-01-12 20:08 UTC, Denis Kaganovich
Details | Diff
1.18.1-mdadm.diff (1.18.1-mdadm.diff,166.24 KB, patch)
2011-02-10 16:46 UTC, Denis Kaganovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2010-08-10 03:26:33 UTC
genkernel uses busybox 1.7.4, which was released 23 November 2007 - as of the time of this bug report, that's almost 3 years ago. Plenty of bugs have been fixed, and (standalone) busybox in portage is up to date.

Reproducible: Always
Comment 1 Donald R. Gray Jr 2010-09-27 00:27:35 UTC
Created an updated ebuild in my overlay, updating the genkernel dependencies.
Comment 2 Donald R. Gray Jr 2010-09-27 00:28:38 UTC
Created attachment 248723 [details]
Updated Ebuild
Comment 3 Donald R. Gray Jr 2010-09-27 00:30:39 UTC
Created attachment 248725 [details, diff]
diff from previous
Comment 4 Sebastian Pipping gentoo-dev 2010-11-18 23:00:48 UTC
*** Bug 310785 has been marked as a duplicate of this bug. ***
Comment 5 Denis Kaganovich 2010-11-29 15:20:59 UTC
Created attachment 255835 [details, diff]
1.17.4-mdadm.diff

May be busybox patches must be reworked too?
Next trivially fixed suitable patches:
1.17.4-mdadm.diff
1.17.4-mdstart.diff
1.17.4-openvt.diff

Also may be copied unchanged:
busybox-1.7.4-signal-hack.patch

Others fixed upstream.
Comment 6 Denis Kaganovich 2010-11-29 15:21:56 UTC
Created attachment 255837 [details, diff]
1.17.4-mdstart.diff
Comment 7 Denis Kaganovich 2010-11-29 15:22:31 UTC
Created attachment 255839 [details, diff]
1.17.4-openvt.diff
Comment 8 Denis Kaganovich 2010-11-29 20:59:41 UTC
Created attachment 255875 [details, diff]
busy-config.patch

Changed default & neboot busybox configs. Mainly removed printing, daemons & other big stuff. Sorry, no mips...
Comment 9 Denis Kaganovich 2010-12-01 13:10:25 UTC
Created attachment 256047 [details, diff]
busy-config2.patch

This is better. Key changes:
1) standard modutils (vs. "small"), compatible with genkernel's /etc/modules, have "-a", /etc/modprobe.d, etc;
2) raidautorun. Using mdadm/mdstart (2 patches) may be obsoleted and after script changing to use raidautorun - removed (future?);
3) revised utils set in netboot.
Comment 10 Denis Kaganovich 2010-12-04 20:26:53 UTC
Created attachment 256348 [details, diff]
e2fsprogs-ldflags.patch

This is something not about busybox, but about initial patch: e2fsprogs 1.41.12 needs another LDFLAGS settings, attached...
Comment 11 Denis Kaganovich 2010-12-30 13:40:50 UTC
Created attachment 258432 [details, diff]
busy-config3.patch

Fix: return lost shell math ("let" command)
Comment 12 Denis Kaganovich 2011-01-05 16:16:50 UTC
Created attachment 258945 [details, diff]
initrd.scripts.patch

This is uncritical patch, removing message "sh: bad number" on [ "" -eq '1' ] comparing with 1.17.4.
Comment 13 Sebastian Pipping gentoo-dev 2011-01-05 23:07:13 UTC
PS: Adding keyword "Inclusion" and "[patch] " prefix to better show this bug's nature in searches...
Comment 14 Sebastian Pipping gentoo-dev 2011-01-07 03:28:22 UTC
I have just added an ebuild sys-kernel/genkernel-99999 (five nines) which uses busybox 1.18.1 and the new experimental branch of genkernel.  Please give it a spin and report back problems.

I have not looked at your patches in detail, yet.  If you could help me pick the parts that are still relevant with 1.18.1, that would be appreciated.  Thanks in advance.
Comment 15 Denis Kaganovich 2011-01-12 20:08:30 UTC
Created attachment 259650 [details, diff]
busybox-migration-1.18.1.patch

This is cumulative patch, removing patches/busybox/1.7.4, adding similar 1.18.1 and changing default configs. defaults/busy-config produced even smaller binary then original (useful features vs. new big stuff like printing daemons).

PS You forget to add GPG versioning & tarball into ebuild.
Comment 16 Sebastian Pipping gentoo-dev 2011-01-12 23:37:58 UTC
I prefer not deleting the 1.7.4 files, so potential users keep the level of comfort.  What approach/goals did you follow when updating the busybox config?  When I understand that, review becomes easier.

Also, I'd like to discuss the approach to take on mdadm and mdstart with you: In bug #260344 and bug #282100 people propose other directions.  What do you think?

Please contact me on <genkernel@g.o.> on this matter.

(I don't mean to hide conversation from the bug, but rather move to a better medium.  I offer addition to the genkernel mail alias to anyone interested, just drop me a mail.)


> PS You forget to add GPG versioning & tarball into ebuild.

Excellent catch.  Fixed.

Comment 17 Sebastian Pipping gentoo-dev 2011-01-13 17:39:42 UTC
I have pushed the busybox patches ported by Denis to the experimental branch now:
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=8c4a8d089e9d3c6a463b63e3eff5e0107a8714cb
Comment 18 Denis Kaganovich 2011-02-10 16:42:12 UTC
(In reply to comment #17)
> I have pushed the busybox patches ported by Denis to the experimental branch
> now:
> http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=8c4a8d089e9d3c6a463b63e3eff5e0107a8714cb

Heh, you not add most useful mdadm patch... mdstart (IMHO equal to raidautorun) don't start raid1 on my proxy server (may be I was not enough shamanic). Ok, I will use mdadm patch self...
Comment 19 Denis Kaganovich 2011-02-10 16:46:31 UTC
Created attachment 262061 [details, diff]
1.18.1-mdadm.diff

Just in case (IMHO better to add then not to add).
Comment 20 Sebastian Pipping gentoo-dev 2011-02-10 17:31:45 UTC
(In reply to comment #19)
> Created an attachment (id=262061) [details]
> 1.18.1-mdadm.diff
> 
> Just in case (IMHO better to add then not to add).

Have you noticed that genkernel 3.4.12 an later com with the "real" mdadm?
With that in mind - do you still need busybox mdadm?
Comment 21 Denis Kaganovich 2011-02-10 19:12:59 UTC
(In reply to comment #20)

> > Just in case (IMHO better to add then not to add).
> 
> Have you noticed that genkernel 3.4.12 an later com with the "real" mdadm?
> With that in mind - do you still need busybox mdadm?

May be I need just CONFIG_BLK_DEV_MD=y (instead of =m) with CONFIG_MD_AUTODETECT=y ;) (and mdstart/raidautorun). Now rebuilding. If no - "real" mdadm sounds good, but much bigger then this.

In other words, unrelated to me, this patch may at least reduce default size of kernel in RAM (md_mod module) and image (busybox-only) without raid support 
lost.

About "mdstart" patch - I will look to him with autodetection, but in first look it may be replaced by existsings "raidautorun" command.
raidautorun: "xioctl(xopen(single_argv(argv), O_RDONLY), RAID_AUTORUN, NULL);"
mdstart: "ioctl(fd, RAID_AUTORUN, part);" (for 'part' from cmdline).
But raidautorun say: "Usage: raidautorun DEVICE". Then, may be in future - send upstream mix from both commands to make configurable "raidautorun".

After testing I may say more (days, becouse testing possible only in evening, as raids on proxy).
Comment 22 Denis Kaganovich 2011-02-11 18:33:05 UTC
Even with CONFIG_BLK_DEV_MD=y & CONFIG_MD_AUTODETECT=y mdstart don't want to start my raid1s. Then, I still on mdadm (while this patch - it just working on minimal requirements).

Are I must try something else? ;) (no, raidautorun not tested [while])
Comment 23 Denis Kaganovich 2011-02-11 18:48:58 UTC
PS Fast:
USE=static emerge -1q busybox
replacing in cpio image
ash
raidautorun /dev/sda1
aidautorun: RAID_AUTORUN: Inappropriate ioctl for device

Comment 24 Xake 2011-02-11 18:55:50 UTC
(In reply to comment #22)
> Even with CONFIG_BLK_DEV_MD=y & CONFIG_MD_AUTODETECT=y mdstart don't want to
> start my raid1s. Then, I still on mdadm (while this patch - it just working on
> minimal requirements).
> 

I think you also need to configure in the apropriate level of the raid (i.e. any of CONFIG_MD_RAID0=y CONFIG_MD_RAID1=y CONFIG_MD_RAID10=y CONFIG_MD_RAID456=y).

Try with the correct one enabled, as for me this works both for software raids and fake raids.

@sebastian
maybe add the raid modules to the list of modules that is included in genkernel if they are not already?
Comment 25 Sebastian Pipping gentoo-dev 2011-02-14 22:43:30 UTC
Please let's take this to a new bug.  Busybox has been upgraded.  If something broke on the way, that's a new bug.

Also, if you want me to help fixing I'll need information in more detail as the whole topic is complex and quite new to me.  Thanks for understanding.