Age | Commit message (Collapse) | Author |
|
|
|
Provide large warnings when net-tools functionality is used. Add
documentation in rc.conf for the new iproute2 based config.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This patch improve coloring in light and transparent term.
It uses tput if available or default color code.
It remplace \033 by \e. It's a kind of rollback from commit 65f410,
because initscripts are now in bash, and argument
"\e isn't recongized in all shells" is not an issue anymore.
This is not done in locale.sh script which can be sourced by others shell,
so we try to be the more compliant as possible
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
eda191cf78365cc3d1 inadvertently introduced a change so that /tmp was not cleared if it was a mountpoint. This restores the old behaviour.
It is strongly adviced to not monut anything but a tmpfs on /tmp. This would avoid the issue.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
udev will read /etc/modprobe.d/*.conf and blacklist all modules that are listed as
blacklist <module>
We parse rc.conf at boot and generate such a .conf file. It cannot be written to
/etc this early, so we save it to /run. A symlink exists in /etc to get the desired
functionality.
With this patch (and an analogous one in mkinitcpio) load-modules.sh can be removed
from the udev package without loss of significant functionality.
Setting MOD_AUTOLOAD will then no longer take effect, nor will kernel parameters.
Thouhgh, kernel parameters might still affect the initramfs as the implementation
is independent.
Original-idea-by: Benjamen Richer <br@waldteufel-online.net>
Based-on-patch-by: David Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This did not work if the folder existed already. Rather than overwriting the folder with a symlink, the symlink was placed in the folder.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
on boot"
This fixes FS#24115.
The persistent net/cd rules will go away soon, but no replacement is in place yet,
so we reinstate the copying magic.
This partially reverts commit e9b658239f45d858ff7b30b46441b8733d20f151.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Some initscripts check the folder /var/run/daemons to see if another
daemon is running. They should not do this as this folder is supposed
to be internal to initscripts, and use ck_daemon instead.
However, we add this workaround to minimize the pain. Should be
removed one day.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Respect the order documented at udev README and systemd files.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
/devshm -> /dev/shm
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
As suggested by seblu:
- add comment to explain what we unmount and why, and
- use /bin/grep rather than grep
Also add some more redirects to /dev/null.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
No need to ommit the parent process, as it's name will not
coincide with udevd.
Original-patch-by: David Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This remounts root read-only as early as possible.
In FS#23845 we saw an example of what might happen if we boot with
root mounted rw and something manages to opens a file read-write
on root before we remount read-only.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This allows /var/run and /var/lock to be symlinked to /run and
/run/lock, respectively. This would be the final step in fixing
FS#18157.
With /run/lock created early in boot it would be possible for tools
like mdadm and lvm2 to use this directory for their locking, and
maybe avoid the --sysinit parameter. This would have to be implemented
in the respective packages though.
Finally, /run/lock is created 1777 just like /var/lock is now.
For the future, it might make sense to follow systemd's lead and make
it 0755, and then create a subdir /run/lock/lockdev owned by root:lock
with permissions 0755. This would improve security and fend agains DoS
attacks, but we would have to check carefully what packages are affected.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This saves all the output during boot to /var/log/boot, which makes
debugging boot problems much simpler.
The logfile contains all the control (color) characters from boot, so
some post processing is in order before the log can be read in a nice
format (e.g. less should be able to show this nicely in raw mode).
Start bootlogd as soon as the required /dev/pts is mounted.
When boot is finished (either at the end of rc.multi or rc.single)
create the required lof file (/var/log/boot) if it does not exist. This
causes bootlogd to flush the log to disk.
Finally, send SIGTERM to bootlogd and clean up after it.
Idea-and-original-patch-by: Søren Poulsen <nikorpoulsen@gmail.com>
Tested-by: David Goldstein <djg1971@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This has two purposes:
1) it allows boot services like bootlogd (that needs /dev/pts) to be
started very early in boot, and
2) by setting the standard options in rc.sysinit rather than in fstab we
have control over them and can easily integrate them with other packages
and make adjustments to fix bugs. This brings /dev/{pts,shm} into line
with how we handle /dev, /proc, /sys and /run.
With this patch /dev/{pts,shm} can (and probably should) be removed from
the default fstab file, and fstab should only contain entries for the
mountpoints the user has specified during install, like /boot, /home and
/var. It will now be possible to boot a working system with an empty fstab.
If /dev/{pts,shm} is in fstab the mountoptions there will take precedenc
over the standard ones.
Cc: Pierre Schmitz <pierre@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Minor cleanups, no functional change.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This is not used on modern udev system.
It's an old legacy. We should drop it.
[tomegun: use "status" rather than "stat_busy"]
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
This patch fix verbosity which use var exported by initcpio in place of kernel.
Verbosity is an initscripts parameter, so it should have a definition in rc.conf.
Kernel parameter should be a shortcut. New option is called VERBOSE.
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
This job is done by recent version of mdadm in /lib/udev/rules.d/64-md-raid.rules.
This will also fix FS#20117.
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Fixes FS#23309.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This is in accordance with the new "standard" agreed on by the major
distros, and discussed on our mailinglists.
This folder will be used by udev/mdadm and other tools rather than
putting things in /dev/.XXX. In the future we might symlink
/var/{run,lock} to /run/{,lock} as the other distros are intending to
do. First, we would have to make sure that /var/{run,lock} can be
mounted as tmpfs without problems.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This should not be necessary as the packages installing modules should
be responsible for updating the dependencies.
Furthermore, as modules can be loaded very early in boot, but depmod can
only be called after root is mounted rw, we can not rely on depmod
fixing broken module dependencies.
Fixes: FS#20174.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Creates the mountpoints for the standard api filesystems in /etc/fstab.
At the moment this is already done by /lib/udev/devices in our udev
package. However, with this change it is possible to boot a fully
working system with the udev unaltered from upstream.
For the future, this patch allows us to get rid of the /lib/udev/devices
directory from the udev package alltogether.
v2: simplified after suggestion from Dave.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This was needed to properly deal with dm devices being created in
initrd. However, the lvm2/devicemapper rule files no longer use this
property and now contain a proper fix.
By grepping through /lib/udev/rules.d I could not find any other rule
file using this property. Finally, the startup script submitted to
systemd by the udev maintainer does not set the property, and there has
not been any bug complaints about this.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
In the future /etc/mtab should be a symlink to /proc/self/mounts, add
support for this in rc.sysinit to be prepared. While strictly not
needed, this makes it clear that the functionality can be removed once
we move over to using symlinks.
This functionality is expected with the next release of util-linux
(2.20), but is already available in the current version if the
experimental libmount support is enabled.
v2: simplified after suggestion from Seblu.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
/proc/sys/kerne/hotplug has been deprecated (moved to
/sys/kernel/uevent_helper) since 2.6.16.
This updates it. Note, this should not be necessary, as there is no
reason this string should not already be empty.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This revert commit 258935d3ee996b0790f39551e6b56596db71c9a8.
This follows upstream commit baf2b4 where the systemd unit
udev-retry.service is removed, and upstream commit 864fde where the
--failed logic is deprecated alltogether.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This trivial patch moves the start of the LOCALE status message to
before the first command. This should not make a difference, as all the
commands should be instantaneos, but might be helpful in case of a bug.
v2: simplified after suggestion from Seblu
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Conflicts:
rc.shutdown
rc.sysinit
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
* adhere to a consistant vim modeline
* use top-right/bottom-left braces for functions
Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Close FS#23373.
Signed-off-by: Seblu <seblu@seblu.net>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
udev contains rules to generate persistent symlinks, if they do not work
as intendend this should be reported upstream.
Furthermore, upstream discourages using /dev/.udev as its format might
change at any time. As of upstream commit 5f59fa0900a5 the location has
changed to /dev/.run/udev, so we would have to make a change either way.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Use btrfs instead of btrfsctl. See:
https://btrfs.wiki.kernel.org/index.php/FAQ#How_do_I_do....3F
Close FS#19792
Signed-off-by: Seblu <seblu@seblu.net>
|
|
This allow to set a custom timeout for udev events processing.
Close FS#20764
Signed-off-by: Seblu <seblu@seblu.net>
|
|
Close FS#19952
Signed-off-by: Seblu <seblu@seblu.net>
|
|
fakeraid and lvm
|
|
|
|
|
|
|