Commit Graph

197 Commits

Author SHA1 Message Date
Xi Ruoyao
948cd148be
Update to lfs-bootscripts-20240825
Co-authored-by:	Andrew Kreimer <algonell@gmail.com>
2024-08-25 15:37:38 +08:00
Xi Ruoyao
54c0a86cd0
bootscripts: console: Fix fb console detection
If CONFIG_FB is not set but CONFIG_DRM_FBDEV_EMULATION is set to y, on a
DRM-drived graphic card (anything from AMD/ATI, Intel, or NVIDIA in
recent 20 years) we'd be using a fb console but without
/sys/class/graphics/fb0.  Then the script won't run setfont for VT 2-6.

Check /sys/class/graphics/fbcon instead of /sys/class/graphics/fb0 to
fix the issue.

Closes: https://lists.linuxfromscratch.org/sympa/arc/lfs-support/2024-08/msg00001.html
Reported-by: Alan Ianson <agianson@gmail.com>
2024-08-23 19:36:09 +08:00
Xi Ruoyao
0808f28619
bootscripts: Add -n to the ln command, for recreating /dev/fd correctly if the initramfs has already created one 2024-07-18 11:13:23 +08:00
Bruce Dubbs
e7b6af1037 Update lfs-bootscripts to only output escape sequences to a terminal. 2024-07-06 17:12:29 -05:00
Bruce Dubbs
ba0723a402 Tweak sysklogd bootscript for latest version. 2024-06-30 14:51:53 -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
Bruce Dubbs
340891bca1 Make minor change to ifup script output text.
Remove blank output line generated in ifup script when bringing
up wireless interface.
2024-04-16 10:59:48 -05:00
Pierre Labastie
623081aa93 bootscripts: change "halt stop" to "halt start"
Commit 27d23b1d has changed the convention that scripts with Sxxx
symlinks should be run with "stop" parameter in runlevels 0 and 6.
They should now be called with the more intuitive "start" parameter.
But a few scripts still call "/etc/init.d/halt stop". Fortunately, this
occurs in code paths that are rarely run (unrecoverable errors). So it
was not noticed until now. Anyway, this is fixed in this commit.
2023-10-04 15:52:42 +02:00
Bruce Dubbs
3864d235cf Package updates and misc upates/typos.
Update to vim-1837.$
Update to zlib-1.3.$
Update to wheel-0.41.2 (Python Module).$
Update to util-linux-2.39.2.$
Update to sysvinit-3.08.$
Update to shadow-4.14.0.$
Update to Python-3.11.5.$
Update to procps-ng-4.0.4.$
Update to pkgconf-2.0.2.$
Update to mpfr-4.2.1.$
Update to kbd-2.6.2.$
Update to gzip-1.13.$
Update to coreutils-9.4.$
Specify the 'nobody-group' for systemd.$
Remove unused usb group.$
2023-09-02 08:54:55 -05:00
Xi Ruoyao
44674e4c92
sysv: Mount cgroup fs for memory pressure information early
Prepare for systemd-254 update.  See #5293 for details.
2023-07-28 19:59:01 +08:00
Xi Ruoyao
da0d47999c
bootscripts: Add missed Change Log entry and version bump for udev 2023-07-22 23:44:10 +08:00
Xi Ruoyao
8435a70be4
bootscripts: mountvirtfs: Create essential symlinks in /dev targeting /proc
These were handled by Eudev, but systemd-udevd stopped to creating them
since 2020.
2023-07-22 23:40:32 +08:00
Xi Ruoyao
870d24c5cb
bootscripts: udev: Set SYSTEMD_LOG_TARGET=kmsg for udevd
This makes udevd send log entries to kmsg buffer and sysklogd will
pick them up.

Ideally we should use "syslog" here, but at the time udevd starts,
sysklogd has not started yet and /dev/log does not exist.  So udevd
cannot open /dev/log and it will still use stderr as a fallback.  We
cannot make udevd depending on sysklogd either, because it would cause a
circular dependency...
2023-07-17 09:40:59 +08:00
Xi Ruoyao
c7ee38fb5a
bootscripts: Use /bin/udevadm instead of /sbin/udevadm
We are switching from eudev to systemd-udev for SysV.  Systemd installs
udevadm into /usr/bin, and at least a part of its function can be used
as non-root user, so we'll no longer put it into /usr/sbin.
2023-07-16 10:04:12 +08:00
David Bryant
4ecb5ada8e Changed "behaviour" to "behavior" throughout the LFS book. 2022-12-12 14:44:57 -06:00
Pierre Labastie
b3daf01578 Typos reported by "rhubarbpieguy" 2022-10-02 09:49:12 +02:00
Xi Ruoyao
4d04dc743f
init.d/swap: you can't mount a swap partition 2022-09-25 13:36:11 +08:00
Bruce Dubbs
16cd09633e Adjust instructions for /dev/shm when creating virtual filesystems.
Some host create /dev/shm as a tmpfs.  Some have is as
a symlink to a location in another directory.  This
change handles both cases.

The change to the sysV bootscripts now creates /dev/shm
as a separate tmpfs from /run.  This makes LFS sysV and
systemd versions treat /dev/shm the same.
2022-09-20 12:20:58 -05:00
Pierre Labastie
c37e846f4b Replace tabs with spaces 2022-09-11 18:42:58 +02:00
Thomas Trepl (Moody)
68e4fd59b2 Mark raid array as clean at shutdown 2022-07-23 22:42:36 +02:00
Xi Ruoyao
bfc6495520
bootscripts: change obsoleted egrep to grep -E 2022-06-23 18:12:37 +08:00
Pierre Labastie
d608267a48 Fix a stupid typo in bootscripts/Makefile
copy/paste error rc0.d -> rc6.d. Brown paperbag commit...
2022-03-27 14:30:05 +02:00
Pierre Labastie
aaad260318 Update bootscripts/ChangeLog for recent changes 2022-03-25 10:52:35 +01:00
Pierre Labastie
ed6ffcb2e2 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-25 10:52:34 +01:00
Pierre Labastie
2539253399 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-25 10:52:17 +01:00
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
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
Pierre Labastie
fb651b9116 Fix email addresses for bug report in bootscripts 2022-03-17 08:12:51 +01:00
Pierre Labastie
a44ae5771f Remove spaces at end of lines - bootscripts 2021-09-07 23:01:23 +02:00
Bruce Dubbs
25596ffb1d Make stopping the network interfaces more robust.
SysV only.

When stopping or rebooting the system, the network boot script is run and looks
at all the /etc/sysconfig/ifconfig.* files. Some of the devices these files
refer to may not be active or even refer to interfaces that are not defined on
the current system. This change ignores non-existant interfaces and any
interfaces that are not UP. This change also avoids bogus warning or error
error messages when the system is shutting down.
2021-06-08 12:31:17 -05:00
Thomas Trepl (Moody)
9804e1619b Update chglog and bootscript version 2021-06-02 22:28:20 +02:00
Thomas Trepl (Moody)
6a11766e6e Avoid killing mdmon at shutdown/reboot 2021-06-02 22:12:59 +02:00
Bruce Dubbs
49e360b9b5 Add manual locales needed for tests if using alternate locale installation
instructions.

Minor changes to boot scripts.
2021-04-28 16:40:51 -05:00
Bruce Dubbs
305ab2a4fa Update to bc-3.2.6.
Update to glibc-2.33. 
Minor change to mountfs boot script. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12109 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-02 16:15:16 +00:00
Xi Ruoyao
02776dffe1 use /run for runtime state directories
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12093 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-01-13 08:44:28 +00:00
DJ Lucas
3c784d8d8a make a Should-Stop dependency of swap to allow clean install
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12052 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-10-02 03:57:24 +00:00
Pierre Labastie
1c41483412 Fix spacing in checkfs after DJ's modification
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12026 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-08-17 08:14:56 +00:00
DJ Lucas
f92b8de7c4 Move $syslog to Should-Start for the network bootscript, ensure checkfs bootscript runs after swap.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12025 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-08-17 06:24:10 +00:00
Bruce Dubbs
ba82c18266 Update to gettext-0.21.
Update to binutils-2.35. 
Update to gcc-10.2.0. 
Update to check-0.15.1. 
Update to bison-3.7.1. 
Update to util-linux 2.36.0. 
Update to libcap-2.42. 
Update to linux-5.7.12. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12007 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-08-04 20:14:32 +00:00
DJ Lucas
b9560f3159 Remove errant swap dependency for checkfs
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11694 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2019-10-31 03:59:01 +00:00
DJ Lucas
84a2932d4a Syslog should not start in runlevel 2 due to network logging
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11692 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2019-10-31 03:25:34 +00:00
DJ Lucas
5f66ac891a Network script depends on firewall scripts from BLFS if activated.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11683 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2019-10-04 23:07:02 +00:00
DJ Lucas
11e78808ff Additional updates to facilities in LSB headers.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11682 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2019-10-04 22:58:07 +00:00