On Sun, Sep 22, 2013 at 12:00:21PM +0100, akhiezer wrote:
> > Date: Sun, 22 Sep 2013 03:12:57 -0700 (PDT)
> > From: Sirsendu Roy <[email protected]>
> > To: BLFS Support List <[email protected]>
> > Subject: Re: [blfs-support] cups printing in blfs-7.4
> >
> > It seems that the entire udev rules is not acting properly. I also have 
> > problem with permission in /dev/tty0, /dev/tty1. 
> > I have no idea what triggers this problem. The system was running properly 
> > until one fine day I just restarted the computer and came accross all of 
> > these problems. 

 To me, that says that *something* you (Roy) did after the previous
boot and before that reboot trashed your devices or permissions when
you rebooted.  i.e. udev and/or its rules got changed.  Once a
system has booted, most of the devices will not change (the
exceptions are things like external drives, usb printers, and the
symlinks for a CD or DVD which do change after a CD/DVD is ejected),
so any other alterations to the rules, or removed rules, only have
an effect after a reboot.

 I think it is also possible that udev could get removed (IFF you
are running devtmpfs in your kernel) and the system would boot with
kernel-provided devices and default ownerships.  But in that case I
would expect to see a failure from the LFS bootscripts.

 In general, I find that it helps to keep notes of what I change, so
that I can eventually identify where problems happen.  It's also
useful to make backups of the system before it gets damaged.

> > I tried with 40-fix-permission-rules in /etc/udev/ but it seems it is no 
> > taking any effect.
> > As a temporary solution I have changed the permissions in /etc/bashrc file. 
> >
> > I ask myself what might went wrong that caused these problems ?
> > What we did was playing with printing related stuff, but it has a actually 
> > nothing to do neither with Xorg permission nor with /dev/null
> >
> > Do you it is time to uninstall and reinstall udev?
> >
> 
> 
> Re-installing udev: Ken & others would know better if just a re-install would 
> be fine, or if it needs a (sort-of) uninstall-then-reinstall (I'd expect 
> there's 
> maybe don't-saw-the-branch-you're-sitting-on hazards there), or what: a 
> separate 
> post today (from me) outlines some checks of parts of lfs/blfs that you might 
> want to review to see how much your system is deviating from what the book 
> would 
> setup.
> 
 I haven't had any reason to reinstall udev itself for several years,
but running the BLFS instructions (to create keymap, gudev, or gir
(introspection) files as required) should reinstall all the files.
In particular, it overwrites /lib/udev/rules.d/.

 As a general rule, using the same version that was used in LFS is a
good idea - things do change from time to time.  And using the
correct instructions for the version - i.e. the Udev Extras (from
systemd) page for LFS-7.2 and later - is important!

 In this case I would also run the LFS commands to update hwdb and
to set up persistent net rules (if appropriate - I'm not quite sure
which LFS version this is).

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to