Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183443 - sys-boot/grub-0.97 - allow long command-line
Summary: sys-boot/grub-0.97 - allow long command-line
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-27 19:00 UTC by Alon Bar-Lev (RETIRED)
Modified: 2008-04-06 08:04 UTC (History)
2 users (show)

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


Attachments
grub-0.97-linux-0202.patch (grub-0.97-linux-0202.patch,1.59 KB, patch)
2007-06-27 19:01 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2007-06-27 19:00:58 UTC
Hello,

After more than a year I've succeeded in making Linux accept >256 command-lines on x86 and related arch, available since 2.6.21.

Grub developers do not sync up.
http://savannah.gnu.org/bugs/?13606

I use the following patch to do the trick. Please consider adding this.

Thanks.
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2007-06-27 19:01:45 UTC
Created attachment 123236 [details, diff]
grub-0.97-linux-0202.patch
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2007-10-28 07:16:48 UTC
[ping]
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-14 21:16:03 UTC
[ping]
Comment 4 Dustin Polke 2007-11-14 22:54:40 UTC
+1

Needed this patch because the command-line was truncated. Please include this patch. Thanks.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-03-25 06:20:05 UTC
In -r5, please test it from package.mask.
Comment 6 Dustin Polke 2008-03-26 11:30:05 UTC
Unmasked and testet -r5.

Compiles despite some type-punned warnings flawlessly, installs and system is still bootable with long command-line, which sets up my encrypted partitions. No unexpected behavior.

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9-stable i686)
=================================================================
System uname: 2.6.23-gentoo-r9-stable i686 mobile AMD Athlon(tm) XP 1500+
Timestamp of tree: Wed, 26 Mar 2008 08:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -pipe -m3dnow -msse -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/mygenkernel /usr/sbin/run-crons"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -pipe -m3dnow -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/             ftp://pandemonium.tiscali.de/pub/gentoo/                ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/                ftp://gd.tuwien.ac.at/opsys/linux/gentoo/                ftp://gentoo.inode.at/source/"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/home/ftp/binpkg/"
PORTAGE_COMPRESS=""
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/alon-barlev /usr/local/portage/layman/haskell /usr/local/portage/layman/sunrise /usr/local/portage/layman/science /usr/local/portage/modified /usr/local/portage/own"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib accessibility acl acpi alsa amr amrnb amrr amrwb apm async audacious audiofile bash-completion berkdb bindist bl branding bzip2 cairo cardbus cjk cli cpudetection cracklib crypt ctype cups dbus dga divx dri dvd dvdread eds encode evo exif expat extensions fam fbcon fbcondecor fbsplash ffmpeg flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gedit gif gimp gimpprint glade glibc-omitfp glitz gmedia gmp gnutls gs gsm gtk gtkhtml guile hddtemp hdf5 iconv icq idn imagemagick imap imlib iproute2 isdnlog jack java javascript jikes jpeg jpeg2k kerberos keyscrub kpathsea latex lcms ldap libcaca libnotify libwww live lm_sensors logrotate lzo mad madwifi memlimit midi mikmod mime mmx mmxext mng motif mp2 mp3 mp4 mpeg mudflap musepack ncurses nls nntp nptl nptlonly nsplugin ogg opengl pam pch pcmcia pcre pda pdf perl plotutils png posix postgres ppds pppd print python quicktime readline real realmedia reflection ruby rubytests samba sasl sdl server session simplexml slang sndfile soap sockets speex spell spl sse ssl suhosin svg swat syslog tcpd tetex tga theora tiff truetype unicode usb userlocales vcd vidix vim-syntax vim-with-x vorbis wifi win32codecs winbind wma wmf wmp wxwindows x264 x86 xanim xine xinetd xml xorg xpm xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="via82xx via82xx-modem mpu401" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="fuji ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="savage"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS_FLAGS
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2008-03-27 05:13:17 UTC
Confirmed.
Comment 8 Hans Nieser 2008-04-06 08:04:45 UTC
There seems to be a problem with this patch where random junk is appended to the commandline passed to the kernel breaking booting for a number of people (in my case the root= parameter got corrupted), see bug 216307