aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2012-07-11cryptsetup: deprecate old syntax and default to the systemd oneTom Gundersen1
We detect if the old syntax is used, and if so print a warning and use the old parsing code. Otherwise, we pass everything on to systemd-cryptsetup. Similarly to what was done with the network syntax, we intend to keep the legacy stuff working for a long time. See crypttab(5) for the new syntax[0]. The main reason for this change, is to be closer to what other distros do. The systemd syntax is based on Debian's format, and is essentially what is being used by at least Debian, Ubuntu, Fedora and Suse. Such widespread use means that it will be better documented in non-Arch-specific documentation, and is more likely to see integration with third-party tools. It is also surely appreciated by admins who use more than one distro, that they don't have to know more than one config format for these sorts of basic things. Furthermore, by actually sharing the code with systemd we get to rely on their much more widespread testing and review compared to what we are able to do ourselves. This is particularly important for the encryption code, as it is the most obscure code in initscripts and any bugs in it would have potentially very severe consequences. Lastly, there are a few (albeit minor) issues I see with our current format: /etc/crypttab is not a plaintext file, but needs to be parsed through bash. The (deprecated) embedded passwords have been a source of problems in the past. And, there is no level of abstraction between the crypttab options and cryptsetup, we just pass them on blindly. The new format and the old one cover roughly the same usecases. To the best of my knowledge, the only use-case not (yet) supported by systemd-cryptsetup, is mounting a removable device and reading the key from a file on that device. For this, stick with the old syntax (though be careful, it is inherently racy). [0]: <http://0pointer.de/public/systemd-man/systemd.unit.html> (note that keyfile-offset support is coming in the next systemd version).
2012-07-11remove /run/nologin before leaving rc.multiDave Reisner1
systemd-186 writes this file when running systemd-tmpfiles, but initscripts never removes it. This disallows all non-root logins. Reported-by: Dan McGee <dan@archlinux.org> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
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-29Remove sed from bootlog_stop()Florian Pritz1
bootlogd from our sysvinit package now removes all escape codes directly so this (incomplete) sed call is no longer needed. Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-29Revert "cryptsetup: use systemd-cryptsetup rather than rolling our own"2012.06.3Tom Gundersen1
This reverts commit 6fe21269e5d54c52c168eac40225dca12a79c355. git failure. this was not meant to be in master. nowhere near ready for that :)
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-28cryptsetup: use systemd-cryptsetup rather than rolling our ownTom Gundersen1
WORK IN PROGRESS; COMPLETELY UNTESTED! In addition to supporting whatever systemd supports, we also support all our own ways of specifying passphrases. We have to look into how our "options" support differs from systemd's and what we want to do about that. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-24tmpfiles: actually remove old files on bootTom Gundersen1
We were not deleting old files as we forgot to add the --clean flag 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 Gundersen2
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 McRae2
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-23rc.conf.5: fix daemon prefixes listSébastien Luttringer1
Removing this line produce a bad formating in man page Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-06-23Remove ck_dependsSébastien Luttringer1
ck_depends is no more used and should not be used anymore Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-06-23rc.d: remove bad examplesSébastien Luttringer2
rc.d must have explicit daemon name with command other than list Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
2012-06-22PKGBUILD: remove duplicate makedepends line2012.06.2Tom Gundersen1
This really does not matter very much, as this PKGBUILD file is for convenience when building from git only. However, it just tripped me up and caused me some needless head-scratching, so sort it out. 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-11PKGBUILD: remove dep on grepTom Gundersen1
We no longer use grep. Suggested-by: Igor Podlesny <for.poige+archlinux@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
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>