Commit Graph

8295 Commits

Author SHA1 Message Date
Pierre Labastie
3b20f597b2 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-25 10:24:45 +01:00
Pierre Labastie
887af775a5 Adapt template to new semantics of S/K symlinks 2022-03-25 10:24:45 +01:00
Pierre Labastie
27d23b1d41 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-25 10:19:53 +01:00
Pierre Labastie
17c6532e0f Do not redefine is_true in the console script
There is a better version in init-functions
2022-03-25 10:19:53 +01:00
Pierre Labastie
db7c8be8ae Make runlevel 2 equivalent to 3 by default: Makefile 2022-03-25 10:19:52 +01:00
Pierre Labastie
96a636b000 Make runlevel 2 equivalent to 3 by default: network 2022-03-25 10:19:52 +01:00
Pierre Labastie
9d83019355 Make runlevel 2 equivalent to 3 by default: sysklogd 2022-03-25 10:19:52 +01:00
Pierre Labastie
a18e40dbc8 Typo in init-functions 2022-03-25 10:19:52 +01:00
Bruce Dubbs
9b463a2154 Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk 2022-03-24 12:12:12 -05:00
Bruce Dubbs
bcb20b4701 Speling 2022-03-24 12:11:57 -05: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
Xi Ruoyao
388ffda463
clfs-ng: adapt temp grub configuration after reverting kernel image change 2022-03-24 00:32:40 +08:00
Xi Ruoyao
31e8da419f
Revert "cross-ng: use uncompressed kernel image in chapter 6"
This reverts commit 56f1739633.

GRUB on x86 does not support loading raw ELF vmlinux.
2022-03-24 00:25:52 +08:00
Xi Ruoyao
0000f2618f
Merge branch 'trunk' into xry111/clfs-ng 2022-03-24 00:24:57 +08:00
Pierre Labastie
6ad4730862 Fix kernel config to mount the devtmpfs before boot
Also make the order and the layout the same as in menu.
2022-03-22 22:03:33 +01:00
Pierre Labastie
dda039ba19 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 21:20:46 +01:00
Xi Ruoyao
f23299002a
Merge branch 'trunk' into xry111/clfs-ng 2022-03-23 00:43:00 +08:00
Bruce Dubbs
53b26d62bf Update references to active display managers 2022-03-21 18:16:20 -05:00
Bruce Dubbs
7ebcd28ac3 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-21 15:04:04 -05:00
Xi Ruoyao
d54813bc0c
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 21:59:45 +08:00
Xi Ruoyao
dd80883687
clfs-ng: temp kernel: mention more configurations depending on host openssl 2022-03-21 16:21:59 +08:00
Xi Ruoyao
68866e4845
Merge branch 'trunk' into xry111/clfs-ng 2022-03-21 14:46:22 +08:00
Xi Ruoyao
0a993870cf
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 14:39:47 +08:00
Xi Ruoyao
0a28db3cd7
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 21:26:58 +08:00
Xi Ruoyao
b68190cebb
Merge branch 'trunk' into xry111/clfs-ng 2022-03-20 18:10:25 +08:00
Pierre Labastie
bb9cb3c0d8 [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 16:06:36 +01:00
Pierre Labastie
fb651b9116 Fix email addresses for bug report in bootscripts 2022-03-17 08:12:51 +01:00
Xi Ruoyao
b55efcb8fc
clfs-ng: adjust grub cfg for our partition layout created earlier 2022-03-16 20:41:32 +08:00
Xi Ruoyao
029f725554
clfs-ng: mount /boot before installing the kernel 2022-03-16 20:41:32 +08:00
Xi Ruoyao
9fe6c3b5be
clfs-ng: adjust fstab to use our partition layout created earlier 2022-03-16 20:33:38 +08:00
Xi Ruoyao
cfd146622f
Merge branch 'trunk' into xry111/clfs-ng 2022-03-16 20:10:36 +08:00
Xi Ruoyao
43149b904b
markupsafe: mention the suffix "-linux-<arch>" in installed directories 2022-03-16 19:47:09 +08:00
Xi Ruoyao
ae84037e94
update to MarkupSafe-2.1.1 (#5025) 2022-03-16 19:39:06 +08:00
Xi Ruoyao
3a67343943
clfs-ng: wrap coreutils root test in 'su -c' 2022-03-16 18:45:21 +08:00
Xi Ruoyao
f1813455d9
Merge branch 'trunk' into xry111/clfs-ng 2022-03-16 15:51:40 +08:00
Xi Ruoyao
ccb08fafc8
pkgmgmt: for systemd revision, add how to restart systemd without reboot 2022-03-16 15:49:35 +08:00
Bruce Dubbs
16a517ac7e Update to openssl-3.0.2. 2022-03-15 14:49:33 -05:00
Xi Ruoyao
1dd1131da2
Merge branch 'trunk' into xry111/clfs-ng 2022-03-16 00:38:23 +08:00
Bruce Dubbs
f868154256 Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk 2022-03-15 11:17:53 -05:00
Bruce Dubbs
4ce4f65526 Ignore fop.log 2022-03-15 11:17:36 -05:00
Xi Ruoyao
ce6088a1c1
changelog: dbus is systemd revision only 2022-03-16 00:14:14 +08:00
Xi Ruoyao
9c7e6ff853
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 00:13:35 +08:00
Bruce Dubbs
c6ed3d0126 Update to meson-0.61.3. 2022-03-15 10:55:25 -05:00
Xi Ruoyao
6ebaf1e080
Merge branch 'trunk' into xry111/clfs-ng 2022-03-15 21:07:53 +08:00
Xi Ruoyao
d35dc01e3c
clfs-ng: create symlink /dev/fd
See "Compulsory links" in linux/Documentation/admin-guide/devices.rst.
2022-03-15 19:12:43 +08:00
Xi Ruoyao
b2ae446a5a
clfs-ng: create $LFS/boot/grub before temporary grub configuration 2022-03-15 16:44:06 +08:00
Xi Ruoyao
f7ac150c84
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-15 16:18:24 +08:00
Bruce Dubbs
51a5442f16 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 13:08:40 -05:00
Xi Ruoyao
582da16ec4
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-15 00:26:26 +08:00