aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
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-08avoid check for /sys/blockDave Reisner1
This is a deprecated path in sysfs, and the check is illogical. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-06-08check for a loaded kernel on rebootDave Reisner1
Explicitly pass "kexec" to the shutdown script if we detect a preloaded kernel already in memory. We mask read errors for custom kernels where kexec is not available. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-06-08remove checks for /var/run and /var/lock as symlinksDave Reisner1
These are shipped as symlinks by filesystem 2012.06, so these checks are no longer needed. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
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-06-07module-load: silenceTom Gundersen1
We don't need to see all modules inserted on every boot. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-07Makefile: fix2012.06.1Tom Gundersen1
2012-05-29udev: fix path so systemd can drop a symlinkTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29fix another wrong pathTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29man: drop duplicate manpagesTom Gundersen6
These are now shipped with systemd-tools. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29systemd: correct some pathsTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29add support for modules-load.d directoriesDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-05-29tmpfiles: let systemd-tools ship most tmpfiles.d entriesTom Gundersen2
We only have one that is initsrcipts specific. Rename the tmpfiles snippet from arch.conf to initscripts.conf as this is more accurate. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29random-seed: use the systemd toolTom Gundersen2
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29vconsole: use the systemd toolTom Gundersen2
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-05-29tmpfiles,sysctl,binfmt: use the systemd toolsTom Gundersen8
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-29fix /forcefsck logic with initcpio fsck hookSébastien Luttringer1
Currently, using "shutdown -F -r now" with fsck initcpio hook doesn't make a full fsck on reboot. Initscripts hook check if /run/initramfs/root-fsck is present to add -M option to fsck which disable check of mounted filesystem. Initcpio doesn't check /forcefsck file and create root-fsck file with a simple fsck check. Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
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-05-05sysctl: fix compatibility with procps-ng2012.05.1Tom Gundersen1
The interface changed slightly, from "-p <file>" to "-p<file>", compared with procps. Reported-by: Boris <projekte@public-files.de> Suggested-by: Eric Belanger <eric@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-04-30deps: require up-to-date udev due to change of direcotry2012.04.1Tom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-04-30release: put tarball in correct dir on buildserverTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-04-30tmpfiles: use 'root' rather than '0' as the default user/groupTom Gundersen1
This avoids hangs due to '0' not being found and the system attempting to look it up over ldap. Suggested-by: Laurent Rahuel <laurent.rahuel@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-04-30Merge remote-tracking branch 'falconindy/master'Tom Gundersen2
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-04-30man: deprecate NETOWRKSTom Gundersen1
This is deprecated by netcfg, so no need to keep documenting it. It stil works as before, but we don't want to encourage its use. Requested-by: Jouke Witteveen <j.witteveen@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-04-30network: fix deprecation messageTom Gundersen1
We should point to the manpage rather than rc.conf. Fixes: FS#29494 Reported-by: Jason St. John <jstjohn@purdue.edu> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-04-28locale.sh: try harder to ensure locale is setDave Reisner1
If LANG is never set by /etc/locale.conf or /etc/rc.conf, ensure that we fall back on LANG=C. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-17functions: use a pipe for umount_all instead of a PEDave Reisner1
We don't care about the side effects of the subshell created by the pipe since everything is localized within this function. Use the more "canonical" syntax. This should stop the recurring bug reports that we seem to get from people who think they understand Bash syntax, e.g. FS#27203 FS#28331 FS#29145 FS#28582 FS#27098 FS#29496 Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-04-01udev: change to new locationTom Gundersen1
Both the old and the new location works at the moment, but we want to remove the symlink, so change to the new location. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-25rc.shutdown: fix tearing down of encrypted devices2012.03.2Tom Gundersen1
This should have been done together with cb1ddfc15431f2e6498c93cd4da53e14f1147659. Mea culpa. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-21fsck: add return value2012.03.1Tom Gundersen1
Reported-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-21man: don't ship manpage for binfmt for nowTom Gundersen1
This will be enabled in the next release once we can coordinate with systemd. I'd also like to document the other formats (tmpfiles, sysctl) at the same time. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-21rc.d: movebash completions to /usr/shareTom Gundersen1
This is the standard location with the new bash-completinos package. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-17crypttab: warn if using passphrase in /etc/crypttabTom Gundersen1
There is no reason not to use a keyfile, and allowing literal passphrases in crypttab has caused issues with the parsing in the past. Furthermore, it is not supported by any other crypttab implementation (to the best of my knowledge). The use of keyfiles have been the recomendation in /etc/crypttab for as long as I can remember. We are looking at refactoring the encryption support, and I think it makes sense to drop support for this when we move to the new implementation. Cc: Thomas Bächler <thomas@archlinux.org> Cc: Matthew Monaco <matt@0x01b.net> Cc: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-17crypto: move function from sysinit to functionsTom Gundersen2
No functional change, just improve readability. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-17sysinit: do not unconditionally modprobe any moreTom Gundersen2
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 Reisner2
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 Gundersen2
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 Reisner2
Fixes FS#28947. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-14arch-binfmt: add manpageSébastien Luttringer2
Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-03-13arch-binfmt: move api filesytem mounting from rc.sysinitSébastien Luttringer2
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-13Merge remote-tracking branch 'seblu/master'Tom Gundersen7
Conflicts: Makefile
2012-03-13Remove NEED_ROOT crapSébastien Luttringer2
This patch revert patch 042d197b4d989ec64. NEED_ROOT was introduced to fix bug FS#24095. But in fact it doesn't solve it because nobody use it. The idea was to allow initscripts developper to have a check runned by every scripts which tell if scripts need to be run as root (most of them) or not (and the script check itself which part of him have to be run as root). All this to display a cute error message. I think this complexity is superfluous and let part of initscript will fail if rights are not enough. I must confess that we should have marked this bug as wontfix rather than do that. Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-03-13Support additional binary formats at bootSébastien Luttringer4
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-13arch-sysctl: allow passing specific config filesSébastien Luttringer1
Modify our path collection loop to accept the remaining argv as paths to config files. This overrides the default lookup for config files in /etc, /lib, and /run so that single config files can be parsed at a time Credits to Dave Reisner in 11ac21c1cf74 Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-03-12timezone: always symlink to zoneinfo rather than copyingTom Gundersen1
Behave as described in the manpage. This makes sure that we don't need to write to /etc unnecessarily in case of updates to zoneinfo. The reason for keeping a copy in /etc was if /usr was on a separate unmounted partition, but this is no longer supported. Reported-by: Sébastien Luttringer <seblu@seblu.net> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-12Makefile: Rework man page handlingLukas Fleischer1
* Move the list of man page files to a variable to avoid code duplication. Also, use generic code in the install target and extract man pages from the newly introduced variable. * Use generic (wildcard) rules for man page generation instead of having one rule per source/target file. * Use "$(DESTDIR)" instead of "${DESTDIR}" everywhere. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-03-12Makefile: Mark phony targetsLukas Fleischer1
Most targets used in our Makefile don't refer to files. Use the ".PHONY" special target to mark these. Doing this prevents us from file name conflicts and improves performance a bit. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-03-11Merge commit 'falconindy/working^1'Tom Gundersen1
2012-03-11arch-tmpfiles: don't try to resolve numeric UIDs/GIDsDave Reisner1
The whole point of using numeric IDs is to avoid resolution in the passwd/group databases. If we encounter an ID which is simply numeric, leave it alone. Looks like I broke this in a4558c4c trying to be a bit too clever. Signed-off-by: Dave Reisner <dreisner@archlinux.org>