Commit Graph

26 Commits

Author SHA1 Message Date
Xi Ruoyao
da0d47999c
bootscripts: Add missed Change Log entry and version bump for udev 2023-07-22 23:44:10 +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
Pierre Labastie
a44ae5771f Remove spaces at end of lines - bootscripts 2021-09-07 23:01:23 +02: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
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
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
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
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
40690e1f21 Remove a bashism from the mountkernfs boot script.
Move the $time init capability from setclock to udev.

Remove and recreate $LFS/dev/shm in Section 6.2 if it is 
a symbolic link.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9860 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-05-21 01:47:41 +00:00
Bruce Dubbs
c8995814d1 Bootscript enhancements
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9783 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-03-22 21:30:39 +00:00
Matthew Burgess
f70b664df1 Upgrade to Udev-178 and add its dependency of Kmod-4. Fixes #2998 and #3001.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9711 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-01-22 09:01:57 +00:00
Bruce Dubbs
e9ba8aa85f Change bootscripts to use devtmpfs for /dev.
Move mounting of /dev to mountvirtfs and ensure /dev gets placed in /etc/mtab. 
Change fstab and kernel configuration sections to reflect these changes.



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9710 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2012-01-16 18:34:31 +00:00
DJ Lucas
642e2e9f3f Various cosmetic fixes for bootscripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9673 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2011-11-28 08:13:36 +00:00
Bruce Dubbs
9813d5e328 Updates to boot scripts:
general cleanup;
  move consolelog function to rc;
  clean up boot logging functions;
  fix interactive prompt between run level S and target run level.



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9661 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2011-11-14 20:40:06 +00:00
Bruce Dubbs
f874424cab Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site.
Move network services to /lib/services.
Move init-functions to /lib/lsb.
Make /lib/lsb a symlink to /lib/services.
Create convenience symlink /etc/init.d->/etc/rc.d/init.d
Add help and man pages to ifup/ifdown.

Append /run/var/bootlog to /var/log/boot.log at the end of
the boot sequence.

Add capability to step through the boot scripts at boot time.

Optionally allow environment variables in sysconfig directory's
console, network, and clock files to be placed in rc.site.

Add an optional FASTBOOT parameter to set /fastboot when rebooting.

Remove a minor warning message from udev that is triggered
by the udev_retry boot script.

Add SKIPTMPCLEAN as an optional parameter to skip cleaning /tmp at boot time.

Add a page to Chapter 7 documenting rc.site. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9597 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2011-09-19 03:31:46 +00:00
Bruce Dubbs
0cda8984a8 Rewrite bootscripts and Chaper 7
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9574 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2011-08-02 02:15:42 +00:00
DJ Lucas
43c2ecf0b8 Update to lfs-bootscripts-20110531.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9556 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2011-05-31 03:36:33 +00:00
Bruce Dubbs
29450ec185 Tweaks to bootscripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9512 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2011-04-20 03:06:03 +00:00
Matthew Burgess
f2ca25f95f Upgrade to Udev-156. Fixes #2671.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9294 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2010-05-29 10:41:33 +00:00
Bryan Kadzban
d3eda3d734 Use --action=add on udevtrigger calls, to handle udev-152 and newer that send "change" events by default.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9256 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2010-04-21 04:22:02 +00:00
Matthew Burgess
f78845c7a8 Check that /dev isn't already mounted in the udev bootscript. Fixes #2550.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9160 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2010-01-24 20:43:01 +00:00
Bruce Dubbs
1c4800743d Moved bootscripts and udev-config to BOOK
Updated Makefile to automatically generate bootscript and udev-config tarballs
Updated licesnse to be the same as BLFS

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8548 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2008-06-03 21:51:14 +00:00