Commit Graph

106 Commits

Author SHA1 Message Date
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
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
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
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
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
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)
6a11766e6e Avoid killing mdmon at shutdown/reboot 2021-06-02 22:12:59 +02: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
DJ Lucas
66dfc3e033 Fix bootscript headers.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11670 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2019-09-08 19:03:52 +00:00
DJ Lucas
6903d5eff3 Update to LFS-Bootscripts-20190902
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11666 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2019-09-02 08:53:46 +00:00
Bruce Dubbs
16334b46d7 Tweak the Makefile
Minor change to mountfs boot script when stopping.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11455 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2018-08-21 19:53:49 +00:00
Bruce Dubbs
4584c156c2 Use correct switch in mountfs script
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11262 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2017-06-26 16:28:19 +00:00
Bruce Dubbs
94cea1d886 Remove section disussing configuration without a network card.
Update boot scripts to unmount network file systems before bringing down the network.



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11260 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2017-06-24 19:33:48 +00:00
DJ Lucas
b875e19ed6 Update to lfs-bootscripts-20170825. Fix a scope issue in the rc script. Thanks to quesker in #lfs-support for the report and subsequent testing.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11210 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2017-03-25 05:48:04 +00:00
Bruce Dubbs
d83fd51aa6 Update formats of error messages in checkfs boot script.
Update to man-pages-4.10. 
Update to linux-4.10.3. 
Update to gdbm-1.13. 
Update to coreutils-8.27. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11209 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2017-03-18 22:47:45 +00:00
Bruce Dubbs
5632647099 Update to linix-3.18.1.
Update to xz-5.2.0. 
Update to binutils-2.25. 
Update comments for sysklogd boot script.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10808 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-12-25 04:36:44 +00:00
Bruce Dubbs
e6b6261f91 Update to linux-3.17.4
Update to kmod-19
Update to grep-2.21


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10795 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-11-24 03:43:54 +00:00
Bruce Dubbs
d9ddcb3bc4 Change default permissions for /run/lock to 1777
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10792 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-11-11 20:58:12 +00:00
Bruce Dubbs
87af6d65ed Update readline, bash, and mpfr patches.
Remove obsolete hotplug referece in udev boot script.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10689 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-08-12 19:59:01 +00:00
Bruce Dubbs
0bf4dfe63c Move sed to be after acl.
Remove reference to obsolete /proc/ksyms in modules boot script. 
Change internal references to svn to an entitiy.



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10671 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-08-03 02:59:46 +00:00
Bruce Dubbs
f6fe5000d7 Update bootscripts for eudev.
Add gcc patch for upstream changes.</para>
Change explanation for using omit-frame-pointer in gcc-pass2.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10560 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-05-11 15:02:47 +00:00
Bruce Dubbs
98398080e0 Fixes to scripts
Update dependencies



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10521 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-04-04 16:05:37 +00:00
Bruce Dubbs
cba2d4e6aa Added systemd and dbus to the book.
Set up systemd and System V side-by-side with the
ability to reboot to either system.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10520 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-04-03 21:52:09 +00:00
Bruce Dubbs
5d5390bf01 Update location of udevd in bootscripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10506 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2014-03-07 17:40:58 +00:00
Bruce Dubbs
28c4c1ede4 Remove unneeded options and commands from mountfs and
mountvirtfs when mtab is a symlink to /proc/self/mounts


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10275 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2013-05-15 17:01:37 +00:00
Bruce Dubbs
df02b599e1 Make sure the root fs is mounted read only in mountfs
before halting


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10272 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2013-05-12 04:13:51 +00:00
Bruce Dubbs
49f236b73e Remove more bashisms in scripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10104 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2013-01-24 22:25:14 +00:00
Bruce Dubbs
85ce884e4c Include some omitted boot script changes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10017 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-10-14 00:10:34 +00:00
Bruce Dubbs
12574f2c42 Add boot/shutdown script customization instructions
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10016 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-10-13 16:14:09 +00:00
Bruce Dubbs
1005bde5ea Add udevadm trigger --action=change line
to udev script to support initramfs/LVM better.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-09-05 23:40:19 +00:00
Bruce Dubbs
99cee8bbe0 More cleanup
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9971 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-08-31 16:59:31 +00:00
Bruce Dubbs
ed992fbc68 Minor typos in bootscripts.
Remove obsolete udev-config directory.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9970 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-08-31 16:42:52 +00:00