Age | Commit message (Collapse) | Author | Files |
|
|
|
This should be safe for freshly mapped swap space, especially since we
check that blkid returns 2.
|
|
This is now handled by udev. Leaving it set does no harm.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
For silly reasons. Don't ask.
|
|
Reported-by: c <carstenmattner@gmail.com>
Reported-by: Evangelos Foutras <evangelos@foutrelis.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
Reported-by: c <carstenmattner@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Report: <https://github.com/archlinuxarm/PKGBUILDs/issues/211>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
In the absence of an interface, dhcpcd will do the right thing. Or ip will complain.
|
|
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>
|
|
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>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Add a new option '-q' which allows status() to be shut up, should it be needed.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
This now uses the systemd code, and is in line with do_unlock.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
I created a mess half-way between the legacy and the systemd outputs.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
Conflicts:
rc.sysinit
Had to manually fix up a conflict in some comments.
|
|
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>
|
|
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>
|