Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#5291 closed enhancement (fixed)

Clean up lfs-udev

Reported by: Xi Ruoyao Owned by: Bruce Dubbs
Priority: normal Milestone: 12.0
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

lfs-udev is very old and it needs a cleanup, esp. after switching to systemd-udevd.

Change History (7)

comment:1 by Xi Ruoyao, 16 months ago

Some notes:

  • 81-cdrom.rules can be dropped at all. The job of it is already performed by 50-udev-default.rules (chgrp the device nodes to cdrom group) and 60-cdrom_id.rules (for calling cdrom_id) in /usr/lib/udev/rules.d.
  • 55-lfs.rules:
    • The part for RTC is still needed. On systemd this job is handled by systemd itself, but on sysv we need it.
    • The part for ISDN may be still needed (if we still care about ISDN in 2023). Technically systemd-based systems also need it, but I guess systemd started after the era of ISDN :).
  • 83-cdrom-symlinks.rules: I don't quite understand it. Waiting for comments from others.

And as the rules are small now, maybe we can included them in the book as cat > ... << EOF blocks instead of shipping a tarball.

Last edited 16 months ago by Xi Ruoyao (previous) (diff)

comment:2 by thomas, 16 months ago

Maybe something like (in the udev page)

<para>Create a rule for setting the system time:</para>

<screen><userinput remap="pre">mkdir -p /etc/udev/rules.d &amp;&amp;
cat &gt; /etc/udev/rules.d/55-lfs.rules &lt;&lt;EOF
# /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.

# Core kernel devices

# This causes the system clock to be set as soon as /dev/rtc becomes available.
SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"

# Comms devices

KERNEL=="ippp[0-9]*",       GROUP="dialout"
KERNEL=="isdn[0-9]*",       GROUP="dialout"
KERNEL=="isdnctrl[0-9]*",   GROUP="dialout"
KERNEL=="dcbri[0-9]*",      GROUP="dialout"
EOF</userinput></screen>

and finally remove the "tar -xvf ../../&udev-lfs-version;.tar.xz" part

Last edited 16 months ago by thomas (previous) (diff)

comment:3 by Bruce Dubbs, 16 months ago

isdn is primarily for establishing a network connection over a telephone line. I have not done that since 1999. Unless we can find someone who still needs that, we should probably remove all references to "dialout" (group id 10).

I think that for configuring Cisco devices, there is still a need to do a terminal connection over a serial line with a program like minicom (not in LFS/BLFS), but that is not a 'dialout' connection.

comment:4 by Bruce Dubbs, 16 months ago

Owner: changed from lfs-book to Bruce Dubbs
Status: newassigned

comment:5 by Bruce Dubbs, 16 months ago

Because there are some additional files in the udev-lfs tarball, I am going to leave 55-lfs.rules there, but will update the tarball to remove the cdrom rules and references to ISDN devices.

comment:6 by Bruce Dubbs, 16 months ago

Resolution: fixed
Status: assignedclosed

Fixed at commit 6de383a26215753a2b0a6d2dba6956ecfd786a90

Update udev-lfs tarball to remove obsolete
           cdrom rules and references to ISDN devices.
    Update to wheel-0.41.0 (Python Module).
    Update to tar-1.35.
    Update to systemd-254.
    Update to meson-1.2.0.
    Update to linux-6.4.7.
    Update to gcc-13.2.0.
    Update to file-5.45.

comment:7 by Bruce Dubbs, 16 months ago

Milestone: 11.412.0

Milestone renamed

Note: See TracTickets for help on using tickets.