Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268672 - [NeedPatch] sys-kernel/genkernel: Initrd does not correctly activate devices with a space
Summary: [NeedPatch] sys-kernel/genkernel: Initrd does not correctly activate devices ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2009-05-04 22:40 UTC by Roel Brook
Modified: 2011-06-13 22:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roel Brook 2009-05-04 22:40:09 UTC
On my isw (Intel ICH9R) soft / fake RAID controller, I've created an array called "Boot en Backup". When I boot, this array does not activate. The other array, on the same controller (called "Data") DOES activate.

When I manually run dmraid -ay after boot, the array activates, but the partitions on the array get a name suffixed with "p1", "p2", "p3" etc. instead of just "1", "2", "3". I also get the device names twice, once with the spaces replaced by underscores.

To clarify:

Right after boot (genkernel created kernel and initrd) in /dev/mapper I have:
/dev/mapper/isw_dagchgecca_Data
/dev/mapper/isw_dagchgecca_Data1
/dev/mapper/isw_dagchgecca_Data2
/dev/mapper/isw_dagchgecca_Data3

After running dmraid -ay I get
/dev/mapper/isw_dagchgecca_Data
/dev/mapper/isw_dagchgecca_Datap1
/dev/mapper/isw_dagchgecca_Datap2
/dev/mapper/isw_dagchgecca_Datap3
/dev/mapper/isw_dagchgecca_Boot En Backup
/dev/mapper/isw_dagchgecca_Boot En Backupp1
/dev/mapper/isw_dagchgecca_Boot En Backupp2
/dev/mapper/isw_dagchgecca_Boot_En_Backup
/dev/mapper/isw_dagchgecca_Boot_En_Backupp1
/dev/mapper/isw_dagchgecca_Boot_En_Backupp2

Workaround is to remove the spaces in the array name (on the ICH9R, this can be done by starting the "Storage Manager" application (Windows-only)).

Reproducible: Always

Steps to Reproduce:
1. Create an array with spaces (not sure if the type of controller matters)
2. Boot using the default kernel (gentoo-sources) compiled with genkernel and an initrd with INITRD=yes in /etc/genkernel.conf




Expected Results:  
The device should only be present once, right after boot.

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-zen1 x86_64)
=================================================================
System uname: Linux-2.6.29-zen1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 04 May 2009 21:15:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -msse4.1 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.muntinternet.net/pub/gentoo/ http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/"
LANG="nl_NL.UTF-8"
LC_ALL="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="nl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/zen-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aalib acl alsa amd64 apache2 bash-completion branding bzip2 cleartype cli consolekit cracklib crypt cups curl dbus device-mapper directfb divx dri emerald exif fat ffmpeg flac fortran fuse gdbm glitz gnome gphoto2 gpm gtk hal iconv id3tag imagemagick ipod isdnlog java jfs jpeg kqemu libcaca lzo matroska midi mktemp mmx mmxext mp3 mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ntfs offensive opengl openmp pam pcre perl php png postgres pppd python rar readline realmedia reflection reiser4 reiserfs session skins spl sqlite sse sse2 ssl ssse3 sysfs tcpd theora threads tiff tk unicode v4l v4l2 vcd vcdx vim-syntax vorbis wmp wub32codecs x264 xattr xcb xcomposite xfce xfs xorg xscreensaver xulrunner xvid zeroconf zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl en" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-09 01:54:12 UTC
I have no way to reproduce this or test a fix. Please submit a patch.
Comment 2 Sebastian Pipping gentoo-dev 2011-05-31 17:45:24 UTC
(In reply to comment #1)
> I have no way to reproduce this or test a fix. Please submit a patch.

Indeed, either a patch or help with debugging would be great.
If I do not hear anything within two weeks, I may close this bug.
Comment 3 Xake 2011-05-31 22:04:35 UTC
Also please check if genkernel 3.4.15 and mdadm works correctly (as Intel nowdays advice people to use mdadm instead of dmraid, and 3.4.15 should contain what may be needed to get everything right).
Comment 4 Sebastian Pipping gentoo-dev 2011-06-13 22:05:46 UTC
(In reply to comment #2)
> If I do not hear anything within two weeks, I may close this bug.

About two weeks have passed, closing.

If there is need to re-open this bug: please go ahead.
We also (and especially) still welcome patches.