Age | Commit message (Collapse) | Author | Files |
|
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).
|
|
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>
|
|
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>
|
|
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>
|
|
This reverts commit 6fe21269e5d54c52c168eac40225dca12a79c355.
git failure. this was not meant to be in master. nowhere near ready for
that :)
|
|
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>
|
|
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>
|
|
We were not deleting old files as we forgot to add the --clean flag
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
Signed-off-by: Allan McRae <allan@archlinux.org>
[tomegun: do the same for startup too]
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Removing this line produce a bad formating in man page
Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
|
|
ck_depends is no more used and should not be used anymore
Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
|
|
rc.d must have explicit daemon name with command other than list
Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
|
|
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>
|
|
Export LANG as early as possible. Then start the log. Then setup the console.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
This has been broken since its was added back in 3dbbd1e2.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
We no longer use grep.
Suggested-by: Igor Podlesny <for.poige+archlinux@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
This is a deprecated path in sysfs, and the check is illogical.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
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>
|
|
These are shipped as symlinks by filesystem 2012.06, so these checks are
no longer needed.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
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>
|
|
We don't need to see all modules inserted on every boot.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
These are now shipped with systemd-tools.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
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>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
This should have been done together with cb1ddfc15431f2e6498c93cd4da53e14f1147659.
Mea culpa.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Reported-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|