Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HowTo] Gentoo installation pure udev // Reiser4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Morimando
Guru
Guru


Joined: 14 Feb 2005
Posts: 339
Location: Germany

PostPosted: Sun Feb 20, 2005 7:54 pm    Post subject: [HowTo] Gentoo installation pure udev // Reiser4 Reply with quote

Needed to build this one a pure Reiser4-based system: (means setting up a pure udev-system using Reiser4)

Consider this a preliminary version - it might be possible that this might be done more efficient or easier (although i consider my method here really easy..)

So this is my "HowTo " on installing yourself a gentoo system that's pure udev right at your first boot.

8) If you consider using Reiser4 as your filesystem of choice, you might want to download a LiveCD that supports Reiser4. I can recommend this one https://forums.gentoo.org/viewtopic-t-216214-highlight-reiser4+livecd+minimal.html, which worked like a charm for me (minimal CD, Stage1 installation)

The biggest part of the installation is the normal Gentoo-Install, which you can copy as it is, without changing anything.
I made the changes needed to run pure udev when installing the kernel, means you start changing the routine here http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7
Manual configuration of the kernel should be a good idea, since in automatic install devfs will most likely be activated. So pick your kernel of choice, (Reiser4: don't forget chosing a kernel which supporst it 8O ), make all customizations you need, whilst using:

Code:

General Setup -> [*] Support for hot-pluggable devices


might be you find this not applicable (---), then it is most likely installed by default and not possible to say no, or its deactivated by some other option.. check that, however you can also activate it by modifying your .config in the kernel-source directory.

Code:

#
# General setup
#
CONFIG_LOCALVERSION=""
CONFIG_SWAP=y
# CONFIG_SYSVIPC is not set
CONFIG_POSIX_MQUEUE=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_LOG_BUF_SHIFT=14
CONFIG_HOTPLUG=y   <==== Here you go :) needs to be set
CONFIG_KOBJECT_UEVENT=y


Code:

File systems -> Pseudo filesystems -> [ ] /dev file system support


So if you got that all, you're ready to save config and build your kernel.. However its never a bad idea copying the .config somewhere else, doing "make mrproper" in the kernel-source's directory and then shifting the .config file back to where it belongs, before "make && make modules_install" , just in case there would be something included you marked as "do not include"..
Kernel compiled? fine.
Now make sure to have a symlink in /usr/src that resembles this (althoug it should point at [b]your/b] kernel-source not mine ;) )
Code:

lrwxrwxrwx   1 root root    29 Feb 20 07:10 linux -> /usr/src/linux-2.6.10-nitro4/


Okay.. now let's do the udev-stuff:
Code:

emerge udev
emerge sysfsutils
emerge hotplug
#normally when installing there shouldn't be a need to get hotplug out of the boot/default runlevel since you haven't placed it there
emerge coldplug
rc-update add coldplug default
#however, look that coldplug is loaded but hotplug not:
rc-update -s
#if it loads hotplug (for whatever reason that might be)
rc-update del hotplug default #or boot..


Nice, everything should be installed by now.. one thing to do:
Code:

nano -w /etc/conf.d/rc
#search for:
RC_DEVICE_TARBALL="yes"
#change it to "no"
#and:
RC_DEVFSD_STARTUP="yes"
#set to "no"


seems as if we should be near the "pure udev" point by now..

Two things to avoid needing to boot a second time (or third or such) from LiveCD because you system went on strike:
I and I was experiencing problems concerning Reiser4/udev support of some parts of the baseline (or whatever it originated from ^^)
upon reboot my system greeted me with

Code:

fsck.reiser4: Couldn't open shared librarie libgpm.so.1: no such file or directory.


although it WAS installed. Solved it by

Code:

ACCEPT_KEYWORDS="~x86"  emerge gpm


Next thing: PAM talked to me in unappropriate ways ;) means it sent a few messages into my console concerning displays and roots it would not have found.
solution alike that above:

Code:

ACCEPT_KEYWORDS="~x86" emerge pam


[i]Well, you can try booting without that done, but to me it seems the problem will occur on most PCs in that way, seems to be a udev/Reiser4 thing... so better changing it before reboot, otherwise it can be a pain in the ass ;)

however, follow the Gentoo-Installation-Instructions now till the end, but before exiting your new-build gentoo-environment
feel free to do
Code:

emerge -C devfsd

with devfs unmerged you should be running pure udev upon reboot, i guess..
however if you didn't install but just changing a normal Gentoo install to udev, you should wait with that unmerging, so you will be able to save your system in case it crashes. Doing this to a new install should work fine, i think :)
Grub should boot if you pass it root=/dev/hdaX (where X is the number of your boot partition), however if it doesn't try /dev/discs/discX/partY ;).
Fstab shouldn't cause problems, if it does, you should be able to change it upon "boot" of your system, in case Grub sent the root right, it should be mounted read/write and NOT read-only..
feedback would be nice, also if anyone know how to do all this better: Reply ;)
i'll edit here everytime if ye want me to :)


P.S.: some parts are shamelessly stolen from
http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html
to put it for an install.. also read two other udev-guides, http://www.gentoo.org/doc/en/udev-guide.xml and some other which i can't seem to find again.. sorry..
_________________
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Back to top
View user's profile Send private message
Morimando
Guru
Guru


Joined: 14 Feb 2005
Posts: 339
Location: Germany

PostPosted: Fri Aug 05, 2005 4:18 pm    Post subject: Reply with quote

Just did that to an AMD64 :)
_________________
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Back to top
View user's profile Send private message
lnxz
Guru
Guru


Joined: 03 Jul 2005
Posts: 472
Location: Earth

PostPosted: Fri Aug 05, 2005 5:49 pm    Post subject: Reply with quote

Maybe I'm dull, but why is it necessary to remove hotplug from rc?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum