Age | Commit message (Collapse) | Author | Files |
|
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>
|
|
This commit should allow rc.d scripts to be run
from non-tty's, such as a cron job
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Whoopsie
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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>
|
|
To match with commit 7f1bd75ee6aaffddf47e704c46fbab5396b7dd19
for rc.shutdown.
Flip the order in which daemons are shutdown. First we scan for
all daemons that are NOT in rc.conf and shut those down (order is
based on ls, so it is dependent on LC_COLLATE). Afterwards, we
shut down all daemons in rc.conf, in order.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Flip the order in which daemons are shutdown. First we scan for
all daemons that are NOT in rc.conf and shut those down (order is
based on ls, so it is dependent on LC_COLLATE). Afterwards, we
shut down all daemons in rc.conf, in order
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
printf causes scripts to fail when argument starts with a dash
Calling stat_append "- hello" causes the following error:
/etc/rc.d/functions: line 99: printf: - : invalid option
printf: usage: printf [-v var] format [arguments]
[FAIL]
Ref: FS#15713
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>
|
|
Commit 92cbc62e introduced an incomplete elif statement which caues
shutdown to fail.
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>
|
|
More of a sane default. Static config left as example
Ref: FS#12670
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Don't default to 'localtime' if HARDWARECLOCK is not set to UTC.
Check explicit values
Ref: FS#15263
Edited-by: Aaron Griffin <aaronmgriffin@gmail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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>
|
|
Add a #define without checking if already defined
(introduced in a2db62cbc2f326c30bfd39be31fe71472b8e47e1 )
Signed-off-by: Gerardo Exequiel Pozzi <djgera@exequiel.ban2.ar>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Do not allocate more memory and leak when buflines>=MAX_BUF_LINES
Signed-off-by: Gerardo Exequiel Pozzi <djgera@exequiel.ban2.ar>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
long time ago
|
|
|
|
fixes #14437
|
|
|
|
<hugo@archlinux.org>
|
|
When errexit was set, sourcing functions caused a script to
exit. Fix this by using a real 'if' instead of the
[ a ] && b
syntax.
Also, fix the vim modeline :)
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This is necessary because the filesystem package doesn't currently contain this directory
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This isn't strictly needed, as memory is cleaned up
on exit anyway, but let's shoot for good form :)
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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>
|
|
From the accept(2) manpage:
The addrlen argument is a value-result argument: the caller must initialize it
to contain the size (in bytes) of the structure pointed to by addr; on return it
will contain the actual size of the peer address.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
The status display functions were returning the opposite of what
they should have been. Also made cosmetic changes to the output.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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 is useful for displaying daemon status in functions
like /etc/rc.d/$DAEMON status
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
A max of 200000 lines stored, at 8K per line, was a little
ridiculous and soaked up way to much memory if a syslogger
was not started. Drop the max to 10000 so that we don't kill
the user's system.
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>
|
|
This prevents a local TZ variable from breaking
daemon's when started by root. Daemon's should always
respect the system's /etc/localtime
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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 is done by checking the route config for a double colon
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Just a safeguard, suggested by FS#10947
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
Additionally add optional WIRELESS_TIMEOUT parameter
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
This should aleviate some gripes
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|