aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
AgeCommit message (Collapse)AuthorFiles
2010-07-06Use findmnt to make mtab2010.07-1Gerardo Exequiel Pozzi1
Use findmnt command new in util-linux-ng 2.18 to make mtab based on /proc/self/mountinfo. Otherwise use current method. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> (added a check whether /proc/self/mountinfo exists -- Thomas)
2010-06-09Initialize /etc/mtab by copying /proc/mountsThomas Bächler1
Our current process of initializing /etc/mtab is hackish and probably error-prone, replace it by simply copying /proc/mounts.
2010-06-09Rewrite early RTC device creationThomas Bächler1
Creating the RTC device will result in an error if devtmpfs is used, as it already exists after loading the module. The new code skips the mknod if the device is already present. Additionally to rtc-cmos, we now also try to load rtc and genrtc, as some custom kernels use the "old" misc RTC device instead of the newer RTC class. In this case, the created device is also different. This should fix FS#18078.
2010-06-08Do not redirect the standard error of fsck to /dev/null by defaultThomas Bächler1
This sets FSCK_STDERR to /dev/stdout, but still makes it possible to override this behaviour in a hook.
2010-06-03Add --action=add to udevadm trigger2010.06-1Thomas Bächler1
This is necessary as the new udev defaults to --action=change which breaks network device renaming.
2010-06-03Only mount /proc, /sys and /dev if they haven't been mounted already, use ↵Thomas Bächler1
devtmpfs instead of tmpfs if supported by the kernel
2010-05-18Include _netdev option in NETFS list when calling fsckDan McGee1
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>
2010-05-03encryption: Look for cryptsetup in various places2010.05-1Thomas Bächler1
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.
2010-02-16Make consolefont code deferrable to avoid destroying splashKurt J. Bosch1
2010-02-16Correct previous patch to get fsck fail into splashKurt J. Bosch1
2010-02-15Add support for the fsck progress file descriptorKurt J. Bosch1
2010-01-24Extend copyright date to 2010Thomas Bächler1
2009-11-10rc.sysinit: remove unnecessary adjtime creationDan McGee1
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>
2009-11-10rc.sysinit: add and clarify clock commentsDan McGee1
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10rc.sysinit: background hwclock callsDan McGee1
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>
2009-11-07Remove redundant call to vgscan - this also fixes a "wrong" symlink in ↵2009.11-1Thomas Bächler1
combination with the new udev-based device mapper node creation
2009-11-06Correct last commit: Unset the STARTUP=1 variable in udevadm control only ↵Thomas Bächler1
after udev has settled
2009-11-05Set STARTUP=1 environment variable on initial udev triggering, required by ↵Thomas Bächler1
latest device-mapper rules
2009-11-05Remove code to create md* devices manually, this is done by udev these daysThomas Bächler1
2009-11-05Disable special handling of ACPI modulesThomas Bächler1
2009-11-05Only load rtc-cmos if rc.conf has proper clock settingsThomas Bächler1
2009-10-07Replace 'truncate file' logic in case of noclobberAaron Griffin1
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>
2009-10-07Empty mtab instead of deleting itAaron Griffin1
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>
2009-09-21Replace \e with \033 for printfsAaron Griffin1
\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>
2009-08-26Make the hook-system a bit more usableThomas Bächler1
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
2009-08-25Implement a hook-system that allows to add custom code to the initscripts at ↵Thomas Bächler1
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
2009-08-24Remove support for static filesystem and make code in rc.single look like ↵Thomas Bächler1
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
2009-08-24Remove uevent processing benchmark, as it is useless now that we actually do ↵Thomas Bächler1
work between trigger and settle
2009-08-24Use nosuid instead of noexec on /devThomas Bächler1
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
2009-08-23Add size and noexec mount options to /dev, change "none" to "udev"Thomas Bächler1
2009-08-22Don't background the udevadm trigger callDan McGee1
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>
2009-08-22Allow skipping of all hardware clock adjustmentsDan McGee1
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>
2009-08-22Remove USEDIRECTISA and associated codeDan McGee1
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>
2009-08-10Mount /dev as tmpfs instead of ramfs for new udev-145Gerardo Exequiel Pozzi1
* 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>
2009-08-02Fixed warning about bootbits with encrypted swap and util-linux-ng 2.16Roman Kyrylych1
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>
2009-07-30Add _netdev support to netfs (also add glusterfs support)Marco Lima1
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>
2009-07-29Make dynamic initilization code for consoles.Gerardo Exequiel Pozzi1
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>
2009-07-20Fix rtc device to match current rule in udev-141-4.2009.07-3Gerardo Exequiel Pozzi1
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Allan McRae <allan@archlinux.org>
2009-07-18Convert to new initscript to new virtual console scheme2009.07-1Gerardo Exequiel Pozzi1
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>
2009-06-26Trigger uevents earlierKurt J. Bosch1
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>
2009-06-07We always mount /sys, thus remove a superfluous check for /sys/block. Also ↵Thomas Bächler1
fixes #14437
2009-06-07Remove a useless check of dmesg.log file Signed-off-by: Hugo Doria ↵Hugo Doria1
<hugo@archlinux.org>
2009-03-09Add adjtime handling to hwclock initAaron Griffin1
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>
2009-03-07Use the device nodes from /lib/udev/devices/* instead of hardcoding them in ↵2009.03-1Thomas Bächler1
initscripts. This requires a new udev package (at least 139-1)
2009-03-03Remove the kernel 'quiet' handling for fsckAaron Griffin1
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>
2009-02-11Fix bug #13205: better random-seed entropyThomas Bächler1
- 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.
2009-02-10Allow the user to cancel an fsckPetar Bogdanovic1
Don't fail and force a reboot if the user cancels an fsck on boot. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-01-21Adjust copyright year to 20092009.01Aaron Griffin1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-23chmod /var/run/utmp to 664 when creatingAaron Griffin1
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>
2008-09-25Added missing slashRoman Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>