Age | Commit message (Collapse) | Author | Files |
|
We don't want fsck looking at any network device, and we would otherwise
check things like iSCSI devices during boot before the network was up. This
doesn't quite work.
Fixes FS#17887.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
The cryptsetup binary will move to /sbin/cryptsetup and the static binary
will be removed. Add code that will try /sbin/cryptsetup first, then
/usr/sbin/cryptsetup and fall back to the old /sbin/cryptsetup.static
if everything else fails.
|
|
|
|
|
|
|
|
|
|
This is an Arch initscripts original (commit 98c76a4), but is not actually
necessary for hwclock to operate correctly, so kill it. The file is created
automatically when `hwclock --systohc` is invoked.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
hwclock calls appear to block somewhere between 1 and 2 seconds when we have
back-to-back calls. My theory (without looking at the code) is that hwclock
has to synchronize to the 1 second intervals of the hardware clock, so it
can sometimes take up to a second to complete.
To get around this unpleasant behavior, we can background the calls at point
X in the boot sequence, and then later at point Y in the script (when we
absolutely need the clock actions to be complete), we wait on the
subprocess. This allows the rest of the boot sequence, after the hwclock
code block, to continue until the point where we wait on the subprocess.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
combination with the new udev-based device mapper node creation
|
|
after udev has settled
|
|
latest device-mapper rules
|
|
|
|
|
|
|
|
We use ": > /foo" in a few cases to truncate a file.
If noclobber happens to be set, this fails, so we'll
use bash's >| operator instead to force it
Suggested-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This fixes an issue with mount.aufs which requires mtab to
be present and apparently will not create it on its own
See FS#16497
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
\e isn't recongized in all shells. This causes issues with the locale.sh
script. For completeness, \e is replaced throughout the rc.sysinit script
Original-idea-by: David Khunne <stahlheinzkockhausen@googlemail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This patch makes the hook names unique, prefixing them all with the script name (without the 'rc.')
It also removes the explicit declarations of all elements of the array, bash assumes "" if they are uninitialized
|
|
certain places
A function add_hook can be called from functions.d to register a hook function. The existing hooks
are based on suggestions from Michael Towers (larch) and on the implementation of initscripts-extras-fbsplash
which currently uses the strings passed to stat_busy and stat_done for this. More hooks can
be added if requested.
The implementation uses associative arrays and will thus only work with bash 4 or later
|
|
the code in rc.sysinit/rc.shutdown
udev has been a dependency of initscripts for a long time, the system won't work without it anyway.
Thus remove the "Using static filesystem" message which does nothing anyway and always try to start udevd
At the same time, update the killall5 and udev start code in rc.single
|
|
work between trigger and settle
|
|
The last patch caused applications to break that mmap()ed devices with PROT_EXEC
It's sad that we can't avoid putting binaries into /dev, but at least we can avoid setuid-binaries being there
|
|
|
|
This operation doesn't block for more than a half second, and backgrounding
it invites race conditions if the settle operation ends up actually getting
executed first. My slice won't even boot without this change.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
For virtualized machines, the hardware clock doesn't actually exist, so all
hwclock calls fail and print error messages during system startup, shutdown,
and the hourly adjtime cronjob. By explicitly looking for HARDWARECLOCK to
be set to 'UTC' or 'localtime', all other values will result in hwclock
calls being skipped (e.g. set the variable to 'none').
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
man hwclock implies this option is rarely necessary, and (almost) all
systems Arch supports surely have a /dev/rtc device and load the rtc driver
in the kernel. Even if this is not available, hwclock will fall back to
direct I/O requests anyway.
As a side note, the adjtime cronjob didn't even respect this setting anyway.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
* ramfs not support POSIX ACL that is necessary for using with the current
udev-145 and make the rule 70-acl.rules usable, when ConsoleKit is available.
* tmpfs support POSIX ACL
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
Afte update to util-linux-ng the following message is shown during boot:
mkswap: /dev/mapper/swap: Warning: don't erase bootbits sectors on
whole disk. Use -f to force.
The change was introduced by this commit:
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=ff3bed806863d1c2075d0efda70b39ea6af9ecba
From man mkswap:
-f Force - go ahead even if the command is stupid. This allows the
creation of a swap area larger than the file or partition it
resides on.
Without this option mkswap will refuse to erase the first block
on a device with a partition table or on whole disk (e.g.
/dec/sda).
This change adds -f to mkswap in rc.sysinit to eliminate the warning.
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
|
|
The system-wide mount will no longer mount items in fstab marked
as _netdev (requires a network device). These _netdev items are
handled by the netfs daemon now.
Additionally, add support for glusterfs :)
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This changes the currect code for console initialization to make it dynamic.
For example when boot on UML the number of consoles is 15 and not 63.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Allan McRae <allan@archlinux.org>
|
|
Just convert vc/N to ttyN in all required places.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Allan McRae <allan@archlinux.org>
|
|
Backgrounding the udev uevent triggering right after the launch
of the udev daemon allows us to do more in parallel before we wait
for uevents to complete (udevadm settle). This should speed up boot
Ref: FS#12706
Idea-from: Vahid Hamidullah <vh22@njit.edu>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
fixes #14437
|
|
<hugo@archlinux.org>
|
|
The hwclock man page recommends calling hwclock with --adjust
at start time, and periodically during system run. So let's do
that here.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
initscripts. This requires a new udev package (at least 139-1)
|
|
This is simply confusing that we use the kernel "quiet" parameter
to mute fsck output. Removed for now - perhaps we can add a better
solution later.
Ref: FS#12928
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
- For the random-seed file location to be more "FHS compliant" is better to put in /var/lib/misc/random-seed (Variable state
information, that persists after reboot) than the /var/run/random-seed (Run-time variable data, that not necessarily persists
after reboot) for example with /var/run mounted as TMPFS.
- The random-seed file permision should be "0600" not "0644"
- The size of random-seed acording to random(4) manpage should be the size specified in "/proc/sys/kernel/random/poolsize" in
other case 512 bytes.
|
|
Don't fail and force a reboot if the user cancels an fsck
on boot.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This allows X terminals to write to /var/run/utmp
so that they are reported properly to commands like
who and w
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
|
|
This reverts commit 119b8df1fb1258231750309f01e747e72f382493.
These nodes are created like 10 lines above, the [ -f ... ] check would always return false anyway (-f == regular file)
|
|
Udev requires /dev/console, /dev/null, and /dev/zero to exist
before running. Create these on init if they're missing
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Previous behavior only set the mode for vc0.
See FS#11093
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This should aleviate some gripes
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This is an obvious oversight on my part - this change allows
the overridden functions to work in daemon scripts and
anything else that uses /etc/rc.d/functions by itself.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|