aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2011-12-31man: minor fixes and typesettingTom Gundersen3
This attempts to unify the look of the man pages. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-31man: add hostname(5)Tom Gundersen3
Also fix typo in Makefile making the install of the other manpages fail. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-31man: add Arch-specific man page for locale.conf and vconsole.confTom Gundersen4
Taken from systemd, but adapted to be Arch-specific. Some things left commented out as we might want to implement them. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-30man: install rc.conf.5Tom Gundersen1
The manpage was not being installed. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-30.gitignore: add manpagesTom Gundersen1
2011-12-28Use /run instead of /var/run in networkAllan McRae1
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-28man: updated rc.conf(5)Tom Gundersen1
Fixed defaults, mentioned precedence and minor issues. Still need to sort out the formatting, which is a bit of a trainwreck. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-28rc.conf: leave HARDWARECLOCK and TIMEZONE empty by defaultTom Gundersen1
On a fresh install this makes sense as HARDWARECLOCK will then be set to UTC, or something else if manually specified by an hwclock invocation; TIMEZONE is left at whatever was set during install, or UTC if nothing was set at all. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-27config: add /etc/hostname supportTom Gundersen1
If /etc/hostname is non-empty its contents is assumed to be the hostname. This takes precedence over HOSTNAME in rc.conf. This implements FS#27732 and http://0pointer.de/public/systemd-man/hostname.html, and is the same as what is done on Debian, Ubuntu, Fedora and Suse. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-26arch-tmpfiles: add handling for _z and _ZDave Reisner1
This doesn't actually relabel security contexts, since arch's coreutils isn't built with selinux support, but it handles maintenance of mode and ownership if you're into that sort of thing. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: simplify uid/gid validationDave Reisner1
getent will process numeric UIDs/GIDs for us. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: simplify action invocationDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: avoid pipe to xargsDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: don't truncate directories on --createDave Reisner1
arch-tmpfiles should not truncate directories when invoked with --create. This matches behavior from systemd's tmpfiles binary. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26clarify NETWORKS a bit moreDieter Plaetinck1
[tomegun: remove the Default line as it is not used any more.] Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-26rc.conf: add hint about manpageTom Gundersen1
Since this is likely the first config file a new user will have to edit, I guess we can be generous and point out that they should look at the man page. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-26rc.conf: move most of the comments from the standard file to the manpageTom Gundersen2
Having the documentation in the config file means users have to merge the config file every time we update the documentation. Also, repeating the documentation in two places means it will eventually go out of sync. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-26tweaked the default rc.conf a bitTom Gundersen2
Many env vars in rc.conf can stay unset in most cases, make this clear by keeping them empty by default and recommend keeping them like that if possible. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-26Add manpage(5) for rc.confDieter Plaetinck2
[tomegun: fixed whitespace error] Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-21warn about lack of devtmpfs supportTom Gundersen1
This still works (probably), but is not tested, and I have a feeling that udev will drop support for this at some point, so we better prepare people. There is no reason not to enable devtmpfs support (except that it requires a recompile of course). Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-21mtab: drop conditional symlinkingTom Gundersen1
With of filesystem-2011.12 this would never get triggered. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-13allow ro rootTom Gundersen1
We no longer force root to be rw, but follow what is set in fstab. Things might not work well if root is mounted ro, but now we at least have the possibility of chasing down problems elsewhere. This implements FS#9384. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-13status: break line after BKGD message2011.12.1Tom Gundersen1
This looked ok on screen due to line-wrap, but the logs were a mess. Should also avoid some lines being cut due to exceeding 256 chars. Reported-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-13locale: export LANG to daemonsTom Gundersen1
This was not done in case $DAEMON_LOCALE was set and locale.conf did not exist. Fixes FS#27498. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-08Merge remote-tracking branch 'falconindy/master'Tom Gundersen1
2011-12-08/run: move /var/{run,lock} to /run/{,lock}Tom Gundersen2
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>
2011-11-27locale.sh: unset LANG before sourcing {locale,rc}.confDave Reisner1
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>
2011-11-27do not limit size on API fsTom Gundersen1
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>
2011-11-26rc.sysinit: force linking of /etc/mtab to /proc/self/mountsDave Reisner1
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>
2011-11-26functions: read from /etc/mtab in umount_allDave Reisner1
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>
2011-11-26hooks: add shutdown_preumount hookDevin J. Pohly2
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>
2011-11-26fsck: skip remounting / fsck'ing the root fsTom Gundersen2
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>
2011-11-14Makefile: automate release a bit moreTom Gundersen2
Automaticall push the tarball to both gerolde and pkgbuild.com. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-11-13minilogd: last kill!2011.11.3Gerardo Exequiel Pozzi1
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-11-13locale.sh: remove leftoversTom Gundersen1
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>
2011-11-10functions: move all logic to the end of the file2011.11.2Dave Reisner1
...where it belongs Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-11-08functions: fix a number of shortcomings in parse_envfileDave Reisner1
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>
2011-11-06PKGBUILD: use %Y%m%d format instead of %s2011.11.1Dave Reisner1
Using seconds from epoch will cause 'makepkg -i' to fail. Lame. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-11-06functions: implement a environment file parserDave Reisner2
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>
2011-11-06functions: declare locale vars in an array for reuseDave Reisner1
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>
2011-11-06functions: properly quote ${mounts[@]}Dave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-11-06functions: remove redundant 'return $?'Dave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-11-06fix non-uniform indentationDave Reisner2
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-11-06avoid unnecessary escaping of newlinesDave Reisner1
The bash parser assumes that an expression continues when || is at the end of a line. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-11-06Fix misspelt error messageJelle van der Waa1
FS#26726 error message should say 'Daemon' instead of 'Dameon' [tomegun: fixed commit message] Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
2011-11-06locale.sh: fix LC_TELEPHONE/LC_MEASUREMENTTom Gundersen1
Thanks to Fabio Scotoni. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-11-05bootlog: filter out some more escapecodesTom Gundersen1
In particular "^[[119G". Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-11-04swapoff: umount swap-backed fs before switching off swapTom Gundersen2
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>
2011-10-29rc.shutdown: reorder a bitTom Gundersen1
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>
2011-10-29minilogd: killTom Gundersen5
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>