Age | Commit message (Collapse) | Author | Files |
|
All packages in core/extra now supports this, and keeping them separated
might soon cause problems (in particular, I submitted a patch to rpcbind
that would cause problems if the symlinks are not in place).
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
If we source locale.sh with a LANG already set and locale.conf doesn't
exist, we may never properly set the locale according rc.conf.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
These are all owned by root, so risk of DoS is low. Also, running out of space on the fs'
would be more critical than running low on memory.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
At this point, libmount powered mount does the right thing in 99% of
cases. util-linux tools all behave in a much more expected manner when
this symlink exists, particularly when parsing /etc/mtab.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
The kernel won't store options it doesn't understand, so looking for
_netdev in /proc/self/mountinfo is worthless. Note that when /etc/mtab
is a symlink to /proc/self/mounts, libmount-powered mount will read from
/run/mount/utab to find the _netdev option.
Reported at: https://bbs.archlinux.org/viewtopic.php?pid=1021427
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This would be useful for filesystem monitoring software which needs to
capture all changes to the filesystem - including the final writes to
the random seed and wtmp.
[tomegun: this hook is now the same as the postkillall hook, but that might
change, so I agree with adding it for the sake of having sane semantics.]
Signed-off-by: Devin J. Pohly <djpohly+arch@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
In case the initramfs already fsck'ed and mounted the root fs ro, we don't remount ro and
fsck.
We still remount the rootfs rw unconditionally at the end. We should probably stop doing
this and require the user to specify rw/ro explicitly in fstab.
We assume that the initramfs will also fsck and mount /usr, so we do not fsck any
mounted fs (not restricted to the rootfs).
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Automaticall push the tarball to both gerolde and pkgbuild.com.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
We were in certain situations still writing to locale.sh. While it would
not have caused any harm, it was unintended and now removed.
This change means that locale.sh will no longer load the consolemap. This
would only be useful if it had been reset accidentally, and logging in again
would then fix a broken console. The issue is described in FS#18759. It is
not clear to me if this is still an issue, or if it solved by our new
utf8/non-utf8 handling.
Either way, resetting the consolemap unconditionaly does not make much sense
in case the user has changed it on purpose.
It might make sense to factor out the vconsole initialization into a
"setup/repair my console" script, similar to systemd's
/lib/systemd/systemd-vconsole-setup, but that would have to wait for a
future release.
Reported-by: Dave Reisner <d@falconindy.com>
Cc: Роман Кирилич <roman.kyrylych@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
...where it belongs
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Embarassing. This function was just plain broken.
- read/trim the correct variables
- allow comments (only start of line, no midline)
- allow quoting via single or double quotes.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Using seconds from epoch will cause 'makepkg -i' to fail. Lame.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
This adds a 'parse_envfile' function that reads files such as
/etc/locale.conf and /etc/vconsole.conf without sourcing them as bash
logic. Several benefits are realized from this:
- Impossible to execute arbitrary code
- Bad syntax won't prevent the entire file from being read
- Possible to limit what variables are allowed
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
This also fixes a bug that unintentionally sets LOCALE instead of
just defaulting to a value when its empty.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
The bash parser assumes that an expression continues when || is at the
end of a line.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
FS#26726 error message should say 'Daemon' instead of 'Dameon'
[tomegun: fixed commit message]
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
|
|
Thanks to Fabio Scotoni.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
In particular "^[[119G".
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Factor out umounting. Explicitly skip umounting API directories, rather
than matching on fs type. This allows us to e.g. unmount all tmpfs but leaving
/run and /dev/shm alone.
v3: fixed some regressions in v2, made 'API filesystems' less general
v2: new umount_all implementation based on proposal by Dave and input from
Anthony. Also, ignore ramfs as it is not backed by swap.
Cc: Dave Reisner <d@falconindy.com>
Cc: C Anthony Risinger <anthony@xtfx.me>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
The new ordering is now:
1) book-keeping
2) shutting down and killing processes
3) swapoff
4) unmounting and tearing down of block devices
The reason to move 1) to the top is so it will not interfere with
the killing of processes. The reason for not moving 3) to the top
as well is that we want to minimize the amount of stuff that has to
be moved from swap to ram.
However, swapoff must happen before 4) as we don't know what is under
the swap device/file.
Added a TODO: unmount any devices backed by swap (tmpfs/ramfs) to make
sure that their contents is thrown away rather than moved to ram. In
principle we might get OOM on shutdown due to the current situation,
but in most cases the only problem should be that shutdown is unecessarily
slow.
Thanks to Dan and Dave for prompting me to look into this.
Cc: Dan McGee <dpmcgee@gmail.com>
Cc: Dave Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This is not very useful, is not maintained, has open serious bugs. Better
to admit that it does not work and just remove it. Someone could easily
make an AUR package with a hook, if they want it and can make it work
as expected.
The only case where this would be useful is in case lvm monitoring is in use
and dmeventd sends out a message to syslog before syslog-ng is started
(there is a very small window). However, not even this works atm (as far
as I know) due to bugs in minilogd.
Signed-off-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Uglier script, but should now work with zsh as well as bash.
v2: only read rc.conf if LANG is not set in locale.conf, no
functional change. Based on suggestion by Dave.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
|
|
udev was receiving some events (due to e.g. swapoff) on shutdown
that caused it to fork new processes. These then receivde TERM before
they could finish, and complained on the console.
In principle, I'm worried that, with the right ammonut of bad luck,
we could fork off some process at exactly the wrong time which escapes
the killall logic.
This, by the way, highlights the frailty of the killall stuff.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Read KEYMAP, CONSOLEFONT and CONSOLEMAP from vconsole.conf. If they are
set they take precedence over the values in rc.conf.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This should fix (to the extent possible) #FS26337.
Figured-out-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
We don't have the problem with non-bash shells here, but better make the support uniform.
|
|
We now require udev 173, and the manpages use asciidoc.
|
|
Thanks to Elvis Stansvik <elvstone@gmail.com> for its template.
Fix bug: FS#25269
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
This is mainly to support non-bash shells that cannot source rc.conf.
The format of /etc/locale.conf is described here:
<http://0pointer.de/public/systemd-man/locale.conf.html>.
If LANG is not set in locale.conf, then we fall back to LOCALE
from rc.conf, as before.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This will make sure the same hook is run regardless of whether you pivot
to the shutdown ramfs or not. This is in order to run apcupsd --killpower
as pointed out by Gerardo.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
These are only useful to a minority of users.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This can be a symlink or a regular file, and rc.sysinit will preserve it
as such.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
I was getting "^[71G", this fixed it.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
With the new logic we will only wait for the timeout in case of problems,
we therefore increase the timeout as this will make problems more obvious.
There has been reports of problems with processes not being terminated, but
hopefully this should help us reproduce them.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
We do this before killing all processes. There is no reason to do it later,
and this might give some processes a bit more time to terminate properly.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This uses the function introduced in 9b77b7d7b535c3c52c99a95374e1f800466c6414.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Since recent change in udev package [#1] (install: remove post-install)
In case of booting without initramfs and there is no /dev/null:
* if / is ro, devtmpfs mount will fail, in consecuence /dev will be mounted as tmpfs.
* if / is rw, devtmpfs mount will success, but a regular file /dev/null in / will be created.
[#1] http://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/udev&id=8728747c2b3d5d0506f7e6f1ac74edc0319591d6
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
rc.conf defaults LOCALE to en_US.UTF-8
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
Abstract out timezone setting into its own function, passing
Country/Area as a parameter. Do some menial checking to make sure:
- the zonefile actually exists, erroring when it doesn't
- /etc/localtime is a symlink to the correct zoneinfo file, relinking
when it isn't.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
This isn't _all_ your modules. Just the extras specified from rc.conf.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
This patch implement loading of sysctl config files as described in
http://0pointer.de/public/systemd-man/sysctl.d.html
This is a very conveniant way of configuring sysctl option for sysadmin
which can drop sysctl config files inside this directory to enable some
feature.
Dropping a file like disableipv6.conf inside this directory will disable ipv6
$ cat disableipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
There is atm no package which use this functionnality
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
rc.d can now take --started, --stopped, --auto, --noauto as option which
help user to filter list of daemon for all actions
As a corollary list command can now take a list of dameon to display
All kind of arguments can be mixed to obtain the proper output.
zsh and bash completion are updated
Note: Output of help command exit 0 and is no more printed on stderr
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|