LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-23-2014, 04:59 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
A system without udev?


Hi: Is it possible to create a system without udev using the LFS book? I am reading version 7.5 of the book, and it does not seem to give the choice of not using udev. The book says:
Quote:
Another key benefit of LFS is that it allows you to have more control over the system without relying on someone else's Linux implementation. With LFS, you are in the driver's seat and dictate every aspect of the system.
According to this I should be given the choice to decide whether to use udev or not. But it gives not such a choice.

Last edited by stf92; 07-23-2014 at 06:21 AM.
 
Old 07-23-2014, 06:10 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,507

Rep: Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656
no udev

It can be done, but not easily and the path is not obvious.
You need to regress to settings (and in some cases sources) that were common about six (guestimate from memory) years ago.

I remember the change (when udev became almost required), but I have not built a system like that myself. I hope someone can chime in with some detail.

Why do you WANT to avoid udev? When it first came out I HATED it, but over time it has solved or avoided a LOT of problems!
 
Old 07-23-2014, 06:20 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by wpeckham View Post
Why do you WANT to avoid udev? When it first came out I HATED it, but over time it has solved or avoided a LOT of problems!
I think it's unnecessary for me because I only use one hotplug device, a memory stick, and that only now and then. So, it makes the system unnecessarily complex.
 
Old 07-23-2014, 04:55 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
There's a chapter in the BLFS book about using mknod to create all devices as static.

http://linuxfromscratch.org/blfs/vie...s/devices.html

Be careful with it because if you mess up, it can virtually kill your system.
 
Old 07-23-2014, 07:07 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Following the instructions in your link, I'm about to do
Code:
mount --bind / /mnt
cp -a /dev/* /mnt/dev
rm /etc/rc.d/rcS.d/{S10udev,S50udev_retry}
umount /mnt
After this, it says:
Quote:
At this point, the system will use static devices upon the next reboot. Create any desired additional devices using mknod.
What is a minimal set of devices I could need?
 
Old 07-23-2014, 08:10 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Depends on your system, but you should at least have the the most critical devices your system would require if udev was not around.
 
Old 07-24-2014, 03:59 AM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I did
Code:
mount --bind / /mnt
cp -a /dev/* /mnt/dev
rm /etc/rc.d/rc.udev
umount /mnt
and everything went OK except when I ran X it hanged!
 
Old 07-24-2014, 12:08 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Did you mknod the framebuffers?
 
Old 07-24-2014, 04:28 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I didn't know X uses framebuffers. What are the devices I should create?
 
Old 07-24-2014, 07:38 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Look for the fb* devices first, and any video* as well.

You may want to use udev first to see which devices it creates under load and then use mknod to recreate them.

Last edited by ReaperX7; 07-24-2014 at 07:44 PM.
 
  


Reply


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
How does one change a system udev rule permanently? farnsy Linux - General 6 03-12-2013 11:52 PM
udev fails but system boot completes successfully kaplan71 Fedora 0 02-11-2009 02:02 PM
How to enable ACL in /dev (udev) file system aldo_mozzi Linux - Newbie 1 03-11-2008 10:22 PM
Integrate USB automounting into non-udev system? Moloko Debian 8 01-13-2007 03:15 AM
udev is slowing my FC2 system down yong_sa Fedora 4 12-09-2004 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:23 AM.

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