Commit Graph

8143 Commits

Author SHA1 Message Date
Pierre Labastie
5dd53b6460 Upstate bootscripts to 20220324 2022-03-26 17:07:57 -05:00
Pierre Labastie
9a01d42b36 Bump bootscripts version 2022-03-26 17:07:45 -05:00
Pierre Labastie
1875c4366c Update bootscripts/ChangeLog for recent changes 2022-03-26 17:07:34 -05:00
Pierre Labastie
57304749a7 Remove the 0/6 exception explanation in usage.xml
It's not true anymore with the new semantics of K/S files.
2022-03-26 17:07:21 -05:00
Pierre Labastie
5621defd94 network bootscript: Don't run ifup if route already set
Otherwise, warnings are issued when changing runlevel. "ip route"
is a good test of whether network is already up. If users want to
change some config, they should use ifup/down, not the network
bootscript.
2022-03-26 17:07:10 -05:00
Pierre Labastie
101ec203cb New semantics for S/K files in boot scripts
Now start and reboot should be called as "script start", and they
should be the last in their runlevel. Note that install_initd
needs to be patched for this to work; see
https://github.com/lfs-book/LSB-Tools/pull/12
2022-03-26 17:06:54 -05:00
Pierre Labastie
b00d3798ce Fix Makefile for new semantics of S/K symlinks
In runlevel 0/6, services which must be stopped should be
with Kxx symlinks
2022-03-26 17:06:36 -05:00
Pierre Labastie
1a64229d3b Adapt template to new semantics of S/K symlinks 2022-03-26 17:06:17 -05:00
Pierre Labastie
5441724160 Change semantics of S and K files
Presently, there are a lot of special cases:
- runlevel 0 and 6 unconditionally run "script stop" if they
  find a Kxxscript symlink. This may lead to trying to stop an
  already stopped device if for example switching to runlevel 0/6
  from runlevel 1. This can be fixed by stating the convention
  that it is the responsability of scripts to check that the service
  is running before killing it (or not running before starting it).
  Still, we shouldn't try to stop a service if it was marked K in
  the previous runlevel. And same for S files: we shouldn't try to
  start a service that was marked S in the previous runlevel. Note
  that changing runlevel is not a "reset": if a user has manually
  changed the state of a daemon, this state will remain the same
  upon changing runlevel if the S/K status of that dameon is
  the same in both runlevels.

- Sxxscript symlinks in runlevel 0/6 are run as "script stop"
  instead of the more intuitive "script start". This does not interact
  well with LSB-tools (some scripts would need "Default-Start: S 0 6"
  but then it is impossible to get correct "Required-Start" or
  "Should-Start" fields). Furthermore, having a counter-intuitive
  behavior is error prone. So now runlevel 0/6 will run "script
  sart" for a Sxxscript.
2022-03-26 17:05:55 -05:00
Pierre Labastie
2cd6a71d4c Do not redefine is_true in the console script
There is a better version in init-functions
2022-03-26 17:05:39 -05:00
Pierre Labastie
8a6d8fe5a3 Make runlevel 2 equivalent to 3 by default: Makefile 2022-03-26 17:05:24 -05:00
Pierre Labastie
fe72acaeff Make runlevel 2 equivalent to 3 by default: network 2022-03-26 17:05:09 -05:00
Pierre Labastie
885782aec5 Make runlevel 2 equivalent to 3 by default: sysklogd 2022-03-26 17:04:56 -05:00
Pierre Labastie
454691e4e5 Typo in init-functions 2022-03-26 17:04:39 -05:00
Xi Ruoyao
8ae5106e5a 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-26 17:04:05 -05:00
William Harrington
aed14071ff fix typos Suggested-by: rhubarbpieguy <rhubarbpieguy@vivaldi.net> 2022-03-26 17:03:35 -05:00
Pierre Labastie
e27a07db50 Fix kernel config to mount the devtmpfs before boot
Also make the order and the layout the same as in menu.
2022-03-22 18:13:38 -05:00
Pierre Labastie
08670b5057 Update comments in the mountvirtfs booscript
Since the kernel can mount /dev if given the proper config
parameter, and we tell users to set this parameter when building
the kernel, this should be mentioned in the script
2022-03-22 18:13:31 -05:00
Bruce Dubbs
a55a9d2222 Update references to active display managers 2022-03-22 08:36:52 -05:00
Bruce Dubbs
103ded20c6 Clarify SysV run levels.
Update the meaning of run level 2.

Add some clarifying remarks about run levels 0 and 6 (halt and reboot).
2022-03-22 08:36:44 -05:00
Xi Ruoyao
fdd0273527 zstd: add prefix=/usr for make
libzstd.pc is created during "make", so without prefix=/usr here
"-L/usr/local/lib" will show up in libzstd.pc.

Thanks Ryan Marsaw for the report.
2022-03-21 09:28:41 -05:00
Xi Ruoyao
5cee6c5a27 libffi: update the desc for --disable-exec-static-tramp
Now BLFS has gobject-introspection-1.72, which is already fixed.  GJS
fix will be released in GNOME 43 (not 42).
2022-03-21 09:28:24 -05:00
Xi Ruoyao
fd28cfd830 package updates
* Update to Python-3.10.3 (#5028)
* Update to libtool-2.4.7 (#5029)
* Update to linux-5.16.16 (#5030)
* Update to tzdata-2022a  (#5031)
* Update to man-db-2.10.2 (#5032)
2022-03-20 13:29:12 -05:00
Pierre Labastie
6c0ac5a496 [Sysv]: /etc/inittab: respawn sulogin in runlevel 1
If run once (as it is now), the only possibility after hitting
control-D is to reboot. Note that init treats the S runlevel
differently:
when the last daemon to be run n runlevel S exits, init switches
to the default runlevel. This is not the case for other runlevels.
2022-03-18 21:01:06 -05:00
Pierre Labastie
e0f39cd706 Fix email addresses for bug report in bootscripts 2022-03-18 21:00:54 -05:00
Xi Ruoyao
0e1e253741 markupsafe: mention the suffix "-linux-<arch>" in installed directories 2022-03-16 11:40:18 -05:00
Xi Ruoyao
1d0798d841 update to MarkupSafe-2.1.1 (#5025) 2022-03-16 11:40:04 -05:00
Xi Ruoyao
afe4fcba5e pkgmgmt: for systemd revision, add how to restart systemd without reboot 2022-03-16 11:39:48 -05:00
Bruce Dubbs
e85741a2cd Update to openssl-3.0.2. 2022-03-16 11:39:35 -05:00
Xi Ruoyao
a64af379a7 changelog: dbus is systemd revision only 2022-03-16 11:39:11 -05:00
Xi Ruoyao
9eac91eba6 systemd: remove --strip-compoents=1 from man page installation command
systemd-man-pages-250.tar.xz has no additional leading components.

An errata is required.
2022-03-16 11:38:59 -05:00
Bruce Dubbs
47e529947c Ignore fop.log 2022-03-16 11:38:46 -05:00
Bruce Dubbs
f214b47d1b Update to meson-0.61.3. 2022-03-16 11:38:15 -05:00
Xi Ruoyao
2dd09032eb package update
* update to expat-2.4.7 (#5019)
* update to bc-5.2.3 (#5020)
* update to linux-5.16.14 (#5021)
* update to perl-5.34.1 (#5022)
* update to vim-8.2.4567 (#4500)
2022-03-16 11:37:39 -05:00
Bruce Dubbs
9e1325a814 Fix pdf presentation issues and some misc issues
Change pdf generation to use 9 point fonts for monospace
sections of the book.  Otherwise texy overflows, especially
in Chapter 8, Stripping.

Fix a minor spacing issue in the stripping issue.

MAke a minor grammar fix in creatingfiles.xml.
2022-03-14 15:07:50 -05:00
Xi Ruoyao
f9e9a5a613 glibc: fix the desc of nss/tst-nss-files-hosts-multi failure, and ...
mention nss/tst-nss-files-hosts-long failure

It seems I was confused by the two failures with similar name, when I
added the description.
2022-03-14 15:07:37 -05:00
Xi Ruoyao
100d72254f systemd: dbus: add --runstatedir=/run
This prevents a reference to /var/run in /usr/lib/tmpfiles.d/dbus.conf,
which would cause a warning from systemd-tmpfiles.

--with-system-pid-file=/run/dbus/pid is not needed with this, but
--with-console-auth-dir and --with-system-socket are still needed.
2022-03-13 18:19:06 -05:00
Xi Ruoyao
4926bf282d kernfs: "Udev" -> "the kernel and Udev"
devtmpfs already contains many device nodes created by the kernel once
it's mounted, and Udev creates or renames nodes based on kernel work.
2022-03-08 09:45:08 -06:00
Xi Ruoyao
83d8de03b5 kernfs: remove static node creation, and update the text
This is to match the "new" way of device handling with devtmpfs (already
widely used in recent ten years).

In a normal booting process, the kernel mounts devtmpfs at very early
stage.  So the static nodes won't be used at all.  The only situation
where the kernel can't mount devtmpfs is "/dev is missing", but it means
those two static nodes can't exist anyway, and a normal LFS system
(without initramfs) won't boot in such a bad situation.

Removing static /dev/console and /dev/null may cause trouble for those
people or scripts chroot into LFS tree without mounting devtmpfs.  But
entering a chroot with only console and null in /dev is already
problematic.  For a reference, If a systemd service is started with
PrivateDevices=true, systemd will create 18 nodes and symlinks to form a
"minimal" /dev.
2022-03-07 14:15:47 -06:00
Xi Ruoyao
4a54194d91 add changelog entries for 20220305 2022-03-06 16:23:18 -06:00
Xi Ruoyao
05b7409418 don't chown $LFS/sources to lfs (#5018) 2022-03-05 12:44:16 -06:00
Xi Ruoyao
4827c0ca6c add zstd upstream fixes patch 2022-03-05 12:43:54 -06:00
Xi Ruoyao
9a43c251e3 gcc: use $(gcc -dumpmachine) instead of *linux-gnu
It's consistent with other commands in the same page, and also helpful
for porting to targets with different triplets (-musl or -gnuabi64).
2022-03-04 15:48:43 -06:00
Xi Ruoyao
03888f84ad remove meson "test SBU" added unintentionally 2022-03-03 11:06:47 -06:00
Xi Ruoyao
bd0a07a4da remove outdated cross-chap5 announcement in what's new
It should have been removed in 10.1, and in 11.0 there should have been
"the version of LFS has switched to a merged-/usr layout".  But we just
forgot to update this all the time :).
2022-03-03 11:06:34 -06:00
Xi Ruoyao
f52de172b5 package updates
* Update to meson-0.61.2.
* Update to linux-5.16.12.
* Update to MarkupSafe-2.1.0.
* Update to dbus-1.14.0.
* Update to vim-8.2.4489.
2022-03-03 11:06:07 -06:00
William Harrington
04dc0342b5 Adjust whatsnew for isl. 2022-03-03 11:05:45 -06:00
Xi Ruoyao
9e1ce87101 add changelog entries for libstdc++ pass 2 and tcl changes 2022-03-03 10:57:11 -06:00
Xi Ruoyao
8ac7bce6c3 gcc-pass2: document *_FOR_TARGET parameters 2022-03-03 10:49:27 -06:00
Xi Ruoyao
b6d0e2b7e1 gcc pass2: use --target=$LFS_TGT instead of many {C,CXX}_FOR_TARGET
There is also a "GCC_FOR_TARGET" which was not set correctly.  The
--target=$LFS_TGT parameter can set up all of these variables as we
expected.
2022-03-03 10:49:10 -06:00