184 Commits

Author SHA1 Message Date
Zeckmathederg
a986704a11 OpenRC; usage: A few changes.
1. No need to escape the space in `set -u` in the sed.
2. `chmod +x` the udevd service.
3. Add `-f` to the `ln` agetty command.

Thanks to Thomas Trepl for these fixes.
2025-12-14 16:13:17 -07:00
Zeckmathederg
663a7053b6 usage: Add udevd service. 2025-12-09 11:52:08 -07:00
Zeckmathederg
3ea5d3b1db Replaced SysVinit with OpenRC.
This is a rough draft of LFS w/ OpenRC without SysVinit. This is nowhere
close for a merge as I need to confirm this works with LFS. Beyond that,
BLFS also must get support, and BLFS will be a battlefield. Until we get
to that point, please do not have this merged.

This branch has been created because the LSB is getting changed, where
SysVinit will not be part of it. However, OpenRC will be. OpenRC also
provides technology projects like GNOME use. SysVinit simply will not
get those technologies. I believe OpenRC will be the way to go, going
forward for an educational alternative to the Systemd version of LFS.

SysVinit can act as an init system under OpenRC, which would introduce
unneeded complexity. That's why this removes SysVinit.

This shall get rendered at
https://linuxfromscratch.org/~zeckma/. MLFS support is not planned until
merge into trunk.

Feedback is appreciated.
2025-12-08 21:51:31 -07:00
Xi Ruoyao
91a62d09e5 systemd: network: Add a note about temporary static resolv.conf for the chroot environment
I still think this is obvious but it seems some people are surprised by
"unknown host" in chroot.  Let's just note it before they propose a
change for every BLFS package of which the build process requires an
Internet connection.
2025-07-20 00:55:31 +08:00
Xi Ruoyao
2a2b22823c network: Fix the /etc/hosts line for local machine
Since r10520-gcba2d4e6 the IP address of the local machine is assumed
192.168.1.2 (instead of 192.168.1.1) but the hosts line isn't updated.
2024-09-26 01:12:54 +08:00
Douglas R. Reno
db7bf1f8e9 systemd configuration: adjust some wording 2024-08-19 09:55:19 -05:00
Bruce Dubbs
8aa80e434d Make capitalization os SysVinit consistent. 2024-07-31 16:59:30 -05:00
Bruce Dubbs
e91edadd00 Package and format updates.
Update to iana-etc-20240612.
Update to bc-6.7.6.
Update to man-pages-6.9.1.
Update to linux-6.9.7.
Update to sysklogd-2.5.2.
Update to shadow-4.16.0.
Update to systemd-256.1.
Update to setuptools-70.1.1.

Also change the formatting of options '-Dsomething' to '-D something'.
2024-06-30 10:40:41 -05:00
Xi Ruoyao
201aa93863 Move punctuation/comma into quotes for <xref>s
We are using American rule for punctuation/comma vs. quotes.  We've
fixed most cases but not <xref>s.
2024-06-22 11:43:31 +08:00
Bruce Dubbs
da1a07bdc1 Remove erroneous -i when creating custom udev rules 2024-05-19 15:53:53 -05:00
Xi Ruoyao
f65f3b993c [systemd] clock: Captitalize the title
All other titles in the book are capitalized by David.
2024-05-03 14:07:54 +08:00
Bruce Dubbs
9575382489 Minor text changes 2024-02-27 12:29:43 -06:00
Bruce Dubbs
cf6fe33cee Fix some external URLs 2024-02-27 12:05:21 -06:00
Xi Ruoyao
39b5bb6989 console font: Add more "working for C.UTF-8" console fonts 2024-01-30 12:10:13 +08:00
Xi Ruoyao
4ecfc55ddb Use C.UTF-8 instead of C in console, and set the consolefont for it 2024-01-29 01:47:41 +08:00
Xi Ruoyao
7c630340c2 locale: Dedup in /etc/profile 2024-01-28 21:06:19 +08:00
Xi Ruoyao
5dd707361f locale: Dedup 2024-01-28 21:04:30 +08:00
Xi Ruoyao
ee950a5e0d More <quote> clean up
Use <quote> instead of '"' if possible.  Use <literal>,
<computeroutput>, etc. instead of <quote> if possible.  Replace
<quote>alpha</quote> with a UTF-8 Greek alpha character.

BTW decorate ".link" with <filename class='extension'>.
2024-01-28 20:53:47 +08:00
Xi Ruoyao
6ebb3b9ca9 Unify locale settings in sysv and systemd
Do not duplicate large paragraphs of texts.

Always use C locale if running in a Linux console.  Create /etc/profile
for systemd too, but reading the locale setting from /etc/locale.conf.
2024-01-28 20:43:40 +08:00
Xi Ruoyao
84974486d9 locale: Replace <quote> with <literal> for locale specifiers
Prevent ambigious quoted punctuations.
2024-01-28 18:37:06 +08:00
Pierre Labastie
360fdfca9c Fix punctuation in quotes, and quote signs
- period and comma inside quotes
- " to <quote>
- some " to <literal> when it is a var value
2024-01-26 18:28:53 +01:00
Xi Ruoyao
ea93c117f2 treewide: Use <ulink> instead of <filename> for man pages
"gcc(1)" is really not a file name.

Use <ulink> and link to the online man page on
https://man.archlinux.org/ so the user can refer to the man pages more
easily.

The change is done via a sed command and long lines are wrapped
manually.
2024-01-26 01:59:06 +08:00
Pierre Labastie
7152faa5fa Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
Pierre Labastie
811d59db8b Nitpick on format
- according to our typography, referring to a manual page should be
  <filename>page(x)</filename>
- don't enclose punctuation into quotes
- use <option> for option
2024-01-11 13:52:28 +01:00
Xi Ruoyao
eea548fb62 symlinks: Fix grammar 2023-12-22 18:22:56 +08:00
Xi Ruoyao
3608380f22 symlinks: Mention how to disable NIC alternative names assignment
Fixes #5394.
2023-12-19 19:50:34 +08:00
Xi Ruoyao
ba40e32566 systemd: Use NSS modules provided by systemd in nsswitch.conf
It allows a simplification to /etc/hosts.  Also correct some info about
FQDN in both sysv and systemd.
2023-09-14 16:50:37 +08:00
Thomas Trepl
909f28430a Typo 2023-08-26 09:52:47 +02:00
Xi Ruoyao
b177415824 Remove references to eudev 2023-07-18 13:07:01 +08:00
Xi Ruoyao
a289860668 Replace eudev with udev from systemd 2023-07-16 11:11:12 +08:00
Xi Ruoyao
ce779ec8c1 configuration: Use [DHCPv4] instead of [DHCP] for systemd .network file
The upstream has splitted [DHCP] into [DHCPv4] and [DHCPv6].  While we
are only enabling DHCPv4 in the example setting (in most scenario DHCPv6
is not strictly needed as SLAAC is sufficient), just use [DHCPv4]
instead of [DHCP].
2023-02-17 15:10:35 +08:00
David Bryant
d8ec0ed3f6 Clarified some things that seemed unclear.
Altered references to "a startup file" to "startup files".
Added detail to a reference to the bash info page. Tweaked
description of mafunctions caused by invalid locales. Clarified
descripton of extended ASCII characters. Every byte has the
high-order bit *set*; in extended ASCII, that bit is *on*.
2022-12-31 11:51:56 -06:00
David Bryant
dfb8516c83 Minor tweaks: a couple of commas, "your time zone". 2022-12-31 10:23:56 -06:00
David Bryant
06df566407 Removed superfluities, corrected spelling and capitalization.
Clarifed things that seemed unclear. Removed some phrases that
said little. Broke up a run-on sentence. Etc.
2022-12-30 12:57:01 -06:00
David Bryant
c5c1e86e00 Clarify by reordering some sentences; improve English idiom.
Corrected capitilization of some titls. Reworked some clumsy
sentences. Eliminated one tautological sentence.
2022-12-24 20:02:12 -06:00
David Bryant
8972a361d0 Clean up / clarify disccussion; correct capitalization of titles.
Clarify discussion of "eth0" vs "enp5s0". Remove superfluous verbiage.
Improve punctuation. Patch grammatical errors (subject / verb).
Improve English idiom in a few places.
2022-12-22 14:46:52 -06:00
David Bryant
6beb8ce055 Add a missing XML tag (<filename class="directory">). 2022-12-22 12:23:21 -06:00
David Bryant
6ef50538b2 Correct capitalization, patch up grammar and idiom.
Regularized capital letters in <title> lines. Changed a dependent
clause and made it independent. Smoothed out some bumpy verbiage
in the "History" section. Removed superfluous verbiage. Clarified
some trounbleshooting advice.
2022-12-21 16:13:16 -06:00
David Bryant
c1fec3a922 Improved English idiom; clarified a few descriptions of scripts. 2022-12-21 10:42:53 -06:00
David Bryant
c30b3ccf26 Remove redundant verbiage and clarify a few things. 2022-12-21 10:18:58 -06:00
Xi Ruoyao
00588180ee kernfs: modernize the explanation for bind mounting /dev
If you are using a "modern" distro (with devtmpfs and a modern udev
implementation), a bind mounting is actually not needed because you can
mount devtmpfs anyway.  The only reason for bind mounting is to be
compatible with old host distros where /dev is a directory containing
many static device nodes, or is a tmpfs (not same as devtmpfs) popluated
by bootscript or an old udev (modern udev implementations, including
eudev and systemd-udev used by LFS, strictly requires a devtmpfs on
/dev).

So update the explanation to match the status quo.
2022-10-01 15:14:22 +08:00
Xi Ruoyao
b00063f2a5 partition: update the description for /tmp with tmpfs 2022-09-23 02:03:38 +08:00
Pierre Labastie
7bd0378b41 Remove trailing spaces 2022-09-11 18:54:49 +02:00
Xi Ruoyao
fb66c4c583 some http -> https changes 2022-09-05 09:52:05 +08:00
Xi Ruoyao
5f3777ab18 disable systemd-networkd-wait-online if ...
systemd-networkd won't be used for network configuration
2022-05-29 14:25:22 +08:00
Pierre Labastie
59d5489ff8 Make clear that run-level definitions are for LFS 2022-05-11 05:56:30 +02:00
Bruce Dubbs
1b491eb061 Rename run level 2 2022-05-10 17:05:42 -05:00
Pierre Labastie
497d43515f Remove the 0/6 exception explanation in usage.xml
It's not true anymore with the new semantics of K/S files.
2022-03-25 10:52:35 +01:00
Xi Ruoyao
b8a2b7e201 inputrc: "8bit" -> "8-bit"
The info page of readline says "eight-bit", so I guess a dash is proper.

Suggested-by: rhubarbpieguy <rhubarbpieguy@vivaldi.net>
2022-03-25 01:10:23 +08:00
Xi Ruoyao
63107f4bc5 fix typos
Suggested-by: rhubarbpieguy <rhubarbpieguy@vivaldi.net>
2022-03-25 01:03:13 +08:00