Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 11-17-2005, 03:14 PM   #1
Registered: Nov 2003
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
6.47. Hotplug, LFS 6.1

In the middle of a LFS install on my server box. I plan on building a monolithic kernel (all modules compiled in). Do I really need Hotplug? Is it 'safe' to skip? I don't see how I'd need it, but, I don't want to skip it and run into problems later on.
Old 11-17-2005, 03:52 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Yeah, I think it's safe to build without it. You may have some issues with the bootscripts trying to run hotplug but they can be fixed. I can't really remember, it's been so long since I installed hotplug. The bootscripts are just shell scripts, It's more or less inevitable that you'll have to alter them to some extent.
If you do find you need it then just install it later. As I say, they're just shell scripts.
Old 11-18-2005, 10:43 AM   #3
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I would be on the other side of the fence: include it.

As far as I know, udev depends heavily on hotplug events to create new device nodes. If you don't use udev, then yeah, you can probably nix hotplug. If you do plan to use udev, then I'd read up on udev's docs to see what it requires.
Old 11-22-2005, 04:54 PM   #4
Registered: Nov 2003
Distribution: xubuntu
Posts: 217

Original Poster
Rep: Reputation: 30
Follow up:

I decided to nix hotplug, and wing it. No problems.

Basically, udev will scan hardware at boot and add the necessary device nodes then, and there. Hotplug takes care of devices that are added after boot.

Here's there udev magic:

case "${1}" in
        # ...

        # Assign udevsend to get hotplug events. udevsend can manage the whole
        # hotplug handling by taking over the kernel spawned event process
        #echo /sbin/udevsend > /proc/sys/kernel/hotplug

        # Populate /dev with all the devices that are already available,
        # and save it's status so we can report failures.
        udevstart || failed=1

        # Now, create some required files/directories/devices that sysfs
        # doesn't export for us.
The only mention of hotplug is when udev assigns it as an event. I just commented it out.

Hope this helps anyone else. Maybe Hotplug should be in BLFS?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
hotplug-ng-002 + LFS bootscripts 3.2.2 = a complete mess :( ParticleHunter Linux From Scratch 1 07-21-2005 09:27 PM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 01:37 PM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration