aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
AgeCommit message (Collapse)AuthorFiles
2012-10-02hostname: don't try to set before /proc is mounted2012.09.2Tom Gundersen1
No idea how I did not spot this obvious bug. [tomegun: note to self, I didn't spot the bug because it is only a problem when not booting with an initramfs...] Fixes: FS#31765 Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-09-27hostname: set very early2012.09.1Tom Gundersen1
Also properly check for the deprecated use of rc.conf for this purpose, as we were getting lots of false positives. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-08-23add some deprecation warningsTom Gundersen1
As we are moving to systemd, alert initscripts users in case they use the legacy configuration options. The legacy options will still work in initscripts, but eventually will not work with systemd. In other words, most users will want to switch to the new settings. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-08-02lvm: fix activation of lvm after cryptestupTom Gundersen1
The check was inverted. Just do this unconditionally. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-08-02rc.sysinit: fix adjtime warningTom Gundersen1
This never worked. Reported-by: James Gordon <drwitherstone@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-24systemd: also increase to LOG_NOTICE on shutdownTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-24systemd: shut all the tools up a bitTom Gundersen1
Increase the max log level to avoid INFO messages. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-24btrfs: remove USEBTRFSTom Gundersen1
This is now handled by udev. Leaving it set does no harm. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-19bootlog: start logging after rootfs is roTom Gundersen1
Report: <https://github.com/archlinuxarm/PKGBUILDs/issues/211> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-18rc.sysinit: remove redundant export of LANGTom Gundersen1
This is done in 'functions' which is sourced by rc.sysinit. Furthermore, this makes sure we take DAEMON_LOCALE into account. Report: <https://bbs.archlinux.org/viewtopic.php?pid=1125166> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-17os-release: factor out distro name/urlTom Gundersen1
This should make the lives of our downstreams slightly simpler by not having to patch rc.sysinit, but rather just ship their own /etc/os-release. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-17cryptsetup: refactor the outputTom Gundersen1
I created a mess half-way between the legacy and the systemd outputs. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-12Merge branch 'spelling'Tom Gundersen1
Conflicts: rc.sysinit Had to manually fix up a conflict in some comments.
2012-07-12Correct spelling and grammar throughoutJason St. John1
This patch addresses the issues with my previous patch submission here: https://mailman.archlinux.org/pipermail/arch-projects/2012-June/002990.html The notable changes between this patch and the previous one are below: -- this patch does not rename set_timezone() -- 'filesystems' and 'bash' are left as-is -- everything is in one patch, not two -- the 'makedepends' change is no longer relevant because the duplication of it was already removed in a later commit Regarding the capitalization of "Btrfs", it seems that upstream prefers "Btrfs".[1][2] Regarding 'https://' vs. 'http://', I left this change in the patch because stating 'https://www.archlinux.org' in the start-up messages doesn't force anyone to use HTTPS over HTTP. It simply shows that HTTPS is available for use. If someone really doesn't want to use HTTPS, they don't have to. Finally, Dan McGee stated that HTTPS will be used all the time soon.[3] [1] https://oss.oracle.com/projects/btrfs/ [2] https://btrfs.wiki.kernel.org/index.php/Main_Page [3] https://bugs.archlinux.org/task/30486#comment96222 Signed-off-by: Jason St. John <jstjohn@purdue.edu>
2012-07-03hwclock: warn on discrepancy between /etc/adjtime and /etc/rc.conf about the ↵Tom Gundersen1
timezone of the RTC Also, move from /var/lib/hwclock/adjtime to /etc/adjtime. This must be fixed in util-linux too. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-29vconsole: configure it only after udev has settledTom Gundersen1
If we configure the console too early, the settings will be lost when the KMS driver is loaded. This fixes FS#30482, which is a duplicate of FS#29781 (which was fixed and then broken again by me). Reported-by: Robert <rbrtdlz@googlemail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-24rc.sysinit: don't create /run/lockTom Gundersen1
This is done by tmpfiles, and we want to use the permissions in the config file, rather than hardcoding them. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-24mounting: let systemd-remount-fs deal with overwriting mount optionsTom Gundersen1
Any api filesystem which appears in fstab is remounted with the correct mount options at the end of boot. Also, move the binfmt mount to where it is needed. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-23Remove trailing colon from outputAllan McRae1
Signed-off-by: Allan McRae <allan@archlinux.org> [tomegun: do the same for startup too] Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-16rc.sysinit: change ordering a bitTom Gundersen1
Export LANG as early as possible. Then start the log. Then setup the console. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-16locale: make sure LANG is always set as this is used in vconsole-setup to ↵Tom Gundersen1
decide if we want utf8 mode We no longer use LOCALE, so no need to set this. Reported-by: Thomas Bächler <thomas@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-12rc.sysinit: look for correct root fsck markerDave Reisner1
This has been broken since its was added back in 3dbbd1e2. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-06-11rc.sysinit: remove warningsTom Gundersen1
These were useful in a transition period, but no need to keep them around. If /usr is not mounted we probably won't even get this far. If devtmpfs is not supported the previous mount of /dev would have given an errormessage. This was prompted by a suggeston from Igor Podlesny to improve on the error handling, which made me realise we could drop it. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-08use systemd-remount-fs to remount rootDave Reisner1
This has the added bonus of scanning /etc/fstab and remounting API filesystems should they be explicitly defined with extra options. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-05-29random-seed: use the systemd toolTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29vconsole: use the systemd toolTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29tmpfiles,sysctl,binfmt: use the systemd toolsTom Gundersen1
No point in reinventing the wheel. These and other tools are shipped in the systemd-tools package. Functionality should be unchanged, but we no longer have to maintain the code. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-11console: configure console after modules have been loadedTom Gundersen1
This should probably be fixed elsewhere, but for now only configure the console once the KMS drivers have been loaded to avoid the settings getting lost. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-04-30vconsole: configure the console as early as possibleTom Gundersen1
This makes sure the correct keymap is set before asking users for input and it avoids (to the extent possible) fonts getting garbled when the font is set. Fixes: FS#29646 and FS#25599 Reported-by: Mathieu Pasquet <mathieui@mathieui.net> Reported-by: <marcin2006@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-17crypto: move function from sysinit to functionsTom Gundersen1
No functional change, just improve readability. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-17sysinit: do not unconditionally modprobe any moreTom Gundersen1
dm-mod and dm-crypt will be autoloaded when needed (at least on kernels newer than 2.6.36). The rtc modules should be compiled in, as they have been in the official kernels for some time. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-17sysinit: remove cryptsetup compatDave Reisner1
We haven't had the static binary in nearly 2 years, so simply call this without a PATH lookup. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-17fsck: move FORCEFSCK/FASTBOOT logic to fsck_allTom Gundersen1
Avoid global variables, and make things clearer. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-17reorder fsck opts, explicitly set end of options markerDave Reisner1
Fixes FS#28947. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-13arch-binfmt: move api filesytem mounting from rc.sysinitSébastien Luttringer1
this will avoid filesytem to be mounted at every startup if not binfmt is used Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-03-13Support additional binary formats at bootSébastien Luttringer1
This patch mount kernel binfmt_misc filesystem at boot and allow loading of a default configuration inspired from systemd binfmt.d way. Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-03-05rc.sysinit: avoid exporting empty TIMEZONE as TZDave Reisner1
fixes FS#28458 Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-02-03rc.sysinit: Remove redundant command substitution2012.02.1Lukas Fleischer1
Invoke `grep -q` and check its return value instead of checking whether grep(1) produces non-empty output. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-02-03Small style cleanupLukas Fleischer1
* Add whitespace to arithmetic expressions. * Use boolean logic for semantically boolean variables. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-02-03Fix indentationLukas Fleischer1
Indent code using tabs (instead of spaces) in all source files. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-01-31Add fastboot supportLukas Fleischer1
This one adds support for the "/fastboot" file, as well as the "fastboot" kernel command line parameter. If either of them is specified, file system checks are skipped. The only exception is the existence of "/forcefsck" or the "forcefsck" kernel parameter which have precedence over fastboot. Implements FS#26154. Reported-by: Mark <mark@voidzero.net> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-01-14mount: no longer pass '-n' to mountTom Gundersen1
This was needed when /etc/mtab was a regular file in order to avoid writing to it when /etc/ was mounted ro. However, now it is not needed. Passing -n should have been a noop, except for the NILFS mount helper. It will only start the daemon if the -n flag is not passed. This fixes FS#22523. Tested-by: Alexander Lam <lambchop468@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-01-12/dev: remove non-devtmpfs supportTom Gundersen1
Udev requires devtmpfs to work, so no point in pretending that the system will work without it. 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-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-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-26fsck: skip remounting / fsck'ing the root fsTom Gundersen1
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>