aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2012-08-04modprobe: pass everything to systemd-modules-load2012.08.1Tom Gundersen1
Unify this as much as possible, write out MODULES to a modules-load.d file in /run before calling systemd-modules-load, rather than using modprobe directly. This should not make any difference to the functionality. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-08-03network: fix warning on trying to start a running networkTom Gundersen1
Reported-by: Ali Kaasinen <ali.kaasinen@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-08-02archlinux.7: fix reference to syslinux config fileDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-08-02man: clarify symlinking in archlinux(7)Tom Gundersen1
This is a bit different from the other instructions, so make it extra clear. Reported-by: Myra Nelson <myra.nelson@hughes.net> 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-29rc-local-shutdown.service: don't conflict with shutdown.targetTom Gundersen1
Reported-by: Oded Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-28man: archlinux typoTom Gundersen1
Reported-by: Eric Fernandez <zebcom@zebulon.org.uk> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-28archlinux man page: fix vconcole man page referenceEric Bélanger1
Fixes FS#30891 Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
2012-07-28arch-daemons: add some sanity checkingTom Gundersen1
Don't create wrapper services, for things that are not exectuable files. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-28merge initscripts-systemdTom Gundersen7
This makes sure that systemd supports some initscripts API's. With this patch, systemd will: * Parse and use DAEMONS and MODULES from rc.conf * Run rc.local and rc.local.shutdown on boot and shutdown respectively Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-27archlinux man page: fix typosEric Bélanger1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
2012-07-27man: change ArchLinux(7) into archlinux(7)2012.07.5Tom Gundersen2
Suggested-by: Pierre Schmitz <pierre@archlinux.org> Suggested-by: Karol Blazewicz <karol.blazewicz@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-27rc.conf: typo in commentTom Gundersen1
[00:31] <dgbaley27> tomegun: typo rc.conf:5 [00:31] <tomegun> dgbaley27: thanks Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-27man: add ArchLinux(7)Tom Gundersen3
This outlines what files needs to be configured to get a well-behaved system. For now it is extremely terse, but the main point is to work as a check-list, and to point people to the correct manpages to learn more. I'll be happy to take patches to extend this in the future. One might argue that this sholud not be part of initscripts, and we might indeed move it to 'filesystem' or something like that in the future. For the time being I'll keep it here for convenience. Suggested-by: Thomas Bächler <thomas@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-24systemd: also increase to LOG_NOTICE on shutdownTom Gundersen2
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-24Merge remote-tracking branch 'mmonaco/master'Tom Gundersen1
2012-07-24do_unlock_systemd: use mkswap -f as beforeMatthew Monaco1
This should be safe for freshly mapped swap space, especially since we check that blkid returns 2.
2012-07-24btrfs: remove USEBTRFSTom Gundersen3
This is now handled by udev. Leaving it set does no harm. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-24make: upload in a different orderTom Gundersen1
For silly reasons. Don't ask.
2012-07-23cryptsetup: fix usage of IFS2012.07.4Tom Gundersen1
Reported-by: c <carstenmattner@gmail.com> Reported-by: Evangelos Foutras <evangelos@foutrelis.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-23network: fix network_down when no interface is setTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-23mount_all should also mount sysfsSébastien Luttringer1
Signed-off-by: Sébastien Luttringer <seblu@seblu.net> [tomegun: or rather, we should not have a special-case to avoid it. mounting sysfs here is still almost certainly the wrong thing to do] Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-21man: fix typoTom Gundersen1
Reported-by: c <carstenmattner@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-21man: typoTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-21rc.conf: add some more references.Tom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-21functions: re-add status -v as a NOOPDave Reisner1
Since this is technically public API, the -v flag shouldn't be removed so easily. Re-add it, but make it a NOOP to support existing uses of it. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-07-20rc.conf: reinstate some settings2012.07.3Tom Gundersen2
Keep, but comment out some settings that should be set in rc.conf, if needed. Other settings should really not be used at all. Also shuffel around the manpage a bit. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-19man: spruce up rc.conf manpage a bitTom Gundersen1
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.conf: pruneTom Gundersen1
The valid options are documented in rc.conf(5). Keeping everything in the manpage means we don't have to deal with .pacnew files when updating minor detals (such as default options). Furthermore, all the removed options are recommended to be left unset. Only if you have special needs should you need to change them. This rc.conf file can be used unchanged on a basic system (with network, logging and cron). Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-18network: don't check for existence of if on net_downTom Gundersen1
In the absence of an interface, dhcpcd will do the right thing. Or ip will complain.
2012-07-18man: update rc.conf(5)Tom Gundersen1
Recommend using the 'systemd' configuration files whereever that makes sense. Update to reflect various changes that have occurred since this was first written. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-18network: don't complain about missing or invalid interfaceTom Gundersen1
If the interface is missing and we use dhcpcd, we do the right thing. Otherwise, ip or dhcpcd will complain for us. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-18USECOLOR: default to 'yes' rather than 'no'Tom Gundersen1
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-18DAEMON_LOCALE: default to 'yes' rather than 'no'Tom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-17status: be verbose by defaultTom Gundersen1
Add a new option '-q' which allows status() to be shut up, should it be needed. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-17os-release: factor out distro name/urlTom Gundersen2
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: negate a wrong check2012.07.2Tom Gundersen1
blkid returns 2 when nothing is found on the device, which is exactly when we want to use it. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-17cryptsetup: refactor do_lockTom Gundersen2
This now uses the systemd code, and is in line with do_unlock. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-17cryptsetup: refactor the outputTom Gundersen2
I created a mess half-way between the legacy and the systemd outputs. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-17makefile: do not create /etc/conf.dTom Gundersen1
Hopefully this folder is going away over time, in the meantime, let it be owned by the packages that use it. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-16cryptsetup: fix up stray IFS assignments2012.07.1Tom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-15cryptsetup: add blkid check for safetyTom Gundersen1
Before we create a swap partition or a filesystm, check that nothing exists on the underlying block device. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-12Merge branch 'spelling'Tom Gundersen10
Conflicts: rc.sysinit Had to manually fix up a conflict in some comments.
2012-07-12Correct spelling and grammar throughoutJason St. John10
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-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>