Re: [arch-projects] [INITSCRIPTS][PATCH 2/2] Disable Soft Raid (mdadm) detection in initscipts.

2011-04-03 Thread Dave Reisner
On Sun, Apr 03, 2011 at 05:39:57PM +0200, Seblu wrote: On Sun, Apr 3, 2011 at 5:04 PM, Dave Reisner d...@falconindy.com wrote: On Sun, Apr 03, 2011 at 04:55:14PM +0200, Sebastien Luttringer wrote: This job is done by recent version of udev in /lib/udev/rules.d/64-md-raid.rules

Re: [arch-projects] [mkinitcpio] [RFC] Rewrite parse_cmdline (again)

2011-04-14 Thread Dave Reisner
On Fri, Apr 15, 2011 at 12:13:29AM +0200, Rémy Oudompheng wrote: On Thu 14 April 2011 at 17:44 -0400, dave reisner wrote: On Apr 14, 2011 5:28 PM, Thomas Bächler tho...@archlinux.org wrote: I posted what I thought was a valid solution on FS#23467 from stack overflow that seems

Re: [arch-projects] [mkinitcpio] [RFC] Rewrite parse_cmdline (again)

2011-04-15 Thread Dave Reisner
On Fri, Apr 15, 2011 at 10:06:55AM +0200, Thomas Bächler wrote: Am 15.04.2011 02:24, schrieb Dave Reisner: Yes, the idea is that the user is expected to escape their own whitespace, just as they are expected to do so in /etc/fstab. You don't understand the problem at all: We cannot simply

Re: [arch-projects] [PATCH 3/3] rc: exit with a meaningful value

2011-04-24 Thread Dave Reisner
On Sun, Apr 24, 2011 at 09:44:48PM +0200, Seblu wrote: On Sun, Apr 24, 2011 at 9:31 PM, Dave Reisner d...@falconindy.com wrote: On Sun, Apr 24, 2011 at 09:28:00PM +0200, Seblu wrote: On Sun, Apr 24, 2011 at 3:01 AM, Dave Reisner d...@falconindy.com wrote: ---  rc |    7 +--  1

[arch-projects] [initscripts][PATCH] rc: exit with error count, not error sum

2011-04-24 Thread Dave Reisner
cc199761f assumes that /etc/rc.d scripts will exit with a value of 0 or 1. Since this can't be guaranteed, clamp the return value to 0 or 1 before adding it to the exit value. --- rc |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc b/rc index 1e64119..54dc11c 100755

Re: [arch-projects] [initscripts][PATCH] rc: exit with error count, not error sum

2011-04-24 Thread Dave Reisner
On Mon, Apr 25, 2011 at 12:07:07AM +0200, Seblu wrote: On Sun, Apr 24, 2011 at 11:42 PM, Dave Reisner d...@falconindy.com wrote: cc199761f assumes that /etc/rc.d scripts will exit with a value of 0 or 1. Since this can't be guaranteed, clamp the return value to 0 or 1 before adding

Re: [arch-projects] [initscripts][netcfg] deprecating advanced network functionality from initscripts

2011-04-26 Thread Dave Reisner
On Tue, Apr 26, 2011 at 12:52:30PM -0500, Dan McGee wrote: On Tue, Apr 26, 2011 at 12:40 PM, Tom Gundersen t...@jklm.no wrote: Here are some suggestions of what we can do (by order of preference), feedback appreciated: 1) Make sure netcfg support all the usecases that initscripts does,

Re: [arch-projects] [RFC] [PATCH] [mkinitcpio] Cleanly stop udev = 168 as recommended by upstream.

2011-05-02 Thread Dave Reisner
On Mon, May 02, 2011 at 03:16:56AM -0300, Gerardo Exequiel Pozzi wrote: On 05/02/2011 01:22 AM, Dave Reisner wrote: On Mon, May 02, 2011 at 12:40:14AM -0300, Gerardo Exequiel Pozzi wrote: On 05/02/2011 12:39 AM, Gerardo Exequiel Pozzi wrote: N0: udev= 168 is needed. N1: I guess the order

Re: [arch-projects] [RFC] [PATCH] [mkinitcpio] Cleanly stop udev = 168 as recommended by upstream.

2011-05-02 Thread Dave Reisner
On Mon, May 02, 2011 at 06:15:15AM -0400, Dave Reisner wrote: On Mon, May 02, 2011 at 03:16:56AM -0300, Gerardo Exequiel Pozzi wrote: On 05/02/2011 01:22 AM, Dave Reisner wrote: On Mon, May 02, 2011 at 12:40:14AM -0300, Gerardo Exequiel Pozzi wrote: On 05/02/2011 12:39 AM, Gerardo Exequiel

Re: [arch-projects] [initscripts] /run is writable by users

2011-05-08 Thread Dave Reisner
On Sun, May 08, 2011 at 04:50:32PM +0200, Pierre Schmitz wrote: Hi all, Looks like /run is writable by every user but also limited to 10MB. This way you can run a dos attack on the system by filling this fs; even by accident. Do we really need write access by every user? Greetings,

Re: [arch-projects] [initscripts][udev][RFC] first step towards removing load-modules.sh

2011-05-10 Thread Dave Reisner
On Tue, May 10, 2011 at 03:49:38PM +0200, Tom Gundersen wrote: On Tue, May 10, 2011 at 3:02 PM, Dave Reisner d...@falconindy.com wrote: Important: for your patchwork to be effective, we need to alter the udev rules that reference load-modules.sh. If this isn't done for the initcpio, you

Re: [arch-projects] [initscripts][RFC] managing /tmp

2011-05-18 Thread Dave Reisner
On Wed, May 18, 2011 at 06:34:50PM +0200, Tom Gundersen wrote: Hi guys, Thanks to all of you who answered my many previous RFC's, I will follow up on them with code soon :-) In the last initscripts release I inedvertently introduced a bug where /tmp is not cleared on boot if it is mounted

Re: [arch-projects] [initscripts] simple rc.d bash completion script

2011-05-18 Thread Dave Reisner
On Thu, May 19, 2011 at 12:53:13AM +0800, Auguste Pop wrote: i have made a small patch to initscripts to allow for a simple bash completion function. i am not familiar with git, i made the patch by git clone, git branch, git commit, and git show. the patch is at

[arch-projects] [PATCH 0/2] iproute2 migration

2011-05-22 Thread Dave Reisner
I'm resubmitting my work of migrating to iproute2 from net-tools at Tom's request. It's pretty much the same, but with the feedback from Dan, I've added some extremely simple deprecation logic to yell at the user when he or she is still using the net-tools variables. The new logic uses some

[arch-projects] [PATCH 1/2] network/rc.sysinit: remove dead code

2011-05-22 Thread Dave Reisner
--- network|5 - rc.sysinit |2 -- 2 files changed, 0 insertions(+), 7 deletions(-) diff --git a/network b/network index 5a261b4..9cd6109 100755 --- a/network +++ b/network @@ -210,11 +210,6 @@ case $1 in fi ;; stop) - #if

Re: [arch-projects] [PATCH 0/2] iproute2 migration

2011-05-22 Thread Dave Reisner
On Sun, May 22, 2011 at 05:06:20PM +0200, Tom Gundersen wrote: On Sun, May 22, 2011 at 4:43 PM, Dave Reisner d...@falconindy.com wrote: I'm resubmitting my work of migrating to iproute2 from net-tools at Tom's request. It's pretty much the same, but with the feedback from Dan, I've added

Re: [arch-projects] [PATCH 2/2] network: deprecate net-tools, add iproute2 support

2011-05-22 Thread Dave Reisner
On Sun, May 22, 2011 at 05:50:18PM +0200, Tom Gundersen wrote: On Sun, May 22, 2011 at 4:43 PM, Dave Reisner d...@falconindy.com wrote: Provide large warnings when net-tools functionality is used. Add documentation in rc.conf for the new iproute2 based config. Functionality looks great

Re: [arch-projects] [PATCH 0/2] iproute2 migration

2011-05-22 Thread dave reisner
On May 22, 2011 6:05 PM, Gaetan Bisson bis...@archlinux.org wrote: [2011-05-22 10:43:17 -0400] Dave Reisner: - yp-tools is currently in extra. we would need to bring this into core in order to support setting a domainname I do not think yp-tools is really eligible to go to [core

Re: [arch-projects] [PATCH 0/2] iproute2 migration

2011-05-24 Thread dave reisner
On May 24, 2011 6:55 AM, Tom Gundersen t...@jklm.no wrote: On Sun, May 22, 2011 at 4:43 PM, Dave Reisner d...@falconindy.com wrote: I'm resubmitting my work of migrating to iproute2 from net-tools at Tom's request. It's pretty much the same, but with the feedback from Dan, I've added some

Re: [arch-projects] [initscripts][PATCH] rc.d: Add error message when daemon script is not found

2011-05-27 Thread Dave Reisner
On Thu, May 26, 2011 at 10:07:23PM -0400, Eric Bélanger wrote: Signed-off-by: Eric Bélanger snowmanisc...@gmail.com --- rc.d |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/rc.d b/rc.d index 55871b1..97f266a 100755 --- a/rc.d +++ b/rc.d @@ -52,7 +52,12 @@

[arch-projects] [PATCH] rc.d: declare ENV as an array

2011-05-27 Thread Dave Reisner
Signed-off-by: Dave Reisner d...@falconindy.com --- Sorry to sneak this in -- I should have noticed it earlier. This is simply a continuation of my crusade against eval, which would happily go to town with word splitting. As this conflicts with Eric's patch, one of us will need to refactor

[arch-projects] [PATCH 1/3] rc.sysinit: allow exec in /run

2011-06-02 Thread Dave Reisner
We already have /tmp and /dev/shm as world writeable directories with exec permissions, so it doesn't necessarily make sense to inhibit exec here. There also might be use cases where running one-off programs from /run might make sense. Signed-off-by: Dave Reisner d...@falconindy.com

[arch-projects] [PATCH 2/3] rc.d/rc.sysinit: whitespace cleanup

2011-06-02 Thread Dave Reisner
Signed-off-by: Dave Reisner d...@falconindy.com --- rc.d |4 ++-- rc.sysinit | 23 --- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/rc.d b/rc.d index 772f2c6..f0c5204 100755 --- a/rc.d +++ b/rc.d @@ -56,9 +56,9 @@ case $1 in cd

[arch-projects] [PATCH] init: allow exec in /run

2011-06-02 Thread Dave Reisner
. This mirrors a commit to initscripts which makes the same change to /etc/rc.sysinit Signed-off-by: Dave Reisner d...@falconindy.com --- init |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/init b/init index a99940a..87ff187 100644 --- a/init +++ b/init @@ -17,7 +17,7 @@ else

[arch-projects] [PATCH] init: leverage blacklisting in /run/modprobe.d

2011-06-02 Thread Dave Reisner
blacklisting. Signed-off-by: Dave Reisner d...@falconindy.com --- This is some low hanging fruit I noticed after the last patch I submitted. Requires module-init-tools 3.13. init | 12 ++-- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/init b/init index 87ff187..d2c2d9b

[arch-projects] [mkinitcpio][PATCH 0/4] performance improvements

2011-06-03 Thread Dave Reisner
Hi all, Sharing some wisdom from my adventures with geninit[1] -- the attached patches refactor some of the more critical pieces of module discovery: all_modules, checked_modules, and auto_modules. The last patch is just another bit of low hanging froot I thought I'd knock off. Using HOOKS=base

[arch-projects] [mkinitcpio] [PATCH 4/4] mkinitcpio: use a loop to place depmod files

2011-06-03 Thread Dave Reisner
Signed-off-by: Dave Reisner d...@falconindy.com --- mkinitcpio |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 0ebf7c9..d6f3f04 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -275,9 +275,9 @@ if [ ${HAS_MODULES} = y ]; then install

[arch-projects] [mkinitcpio] [PATCH 2/4] functions: refactor all_modules

2011-06-03 Thread Dave Reisner
sanitize and print during module discovery. We also strip path names during this process and null terminate path names for safety. Signed-off-by: Dave Reisner d...@falconindy.com --- functions | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/functions b

[arch-projects] [mkinitcpio][PATCH 0/3] patch resends

2011-06-04 Thread Dave Reisner
Patches 1 and 2 are a rework of early patches that address concerns Thomas had. The third patch is a change similar to patch 2 which loads all earlymodules= at once, instead of looping. I don't notice any difference in runtime for early userspace with the binary depmod files, but this definitely

[arch-projects] [mkinitcpio] [PATCH 2/3] init: remove support for disablemodules

2011-06-04 Thread Dave Reisner
This is no longer supported, as m-i-t supports modprobe.blacklist= syntax on the kernel cmdline. We load all modules from the config at once with --all and --use-blacklist flags in order to honor the cmdline blacklisting. Signed-off-by: Dave Reisner d...@falconindy.com --- init | 14

[arch-projects] [mkinitcpio][PATCH 4/4] init: purge environment before leaving early userspace

2011-06-04 Thread Dave Reisner
We preserve TERM, but everything else can be destroyed from the environment. Signed-off-by: Dave Reisner d...@falconindy.com --- init |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/init b/init index 67039c8..db93e9b 100644 --- a/init +++ b/init @@ -112,4 +112,4

[arch-projects] [mkinitcpio][PATCH 3/4] init_functions: simplify mount case of root=/dev/*

2011-06-04 Thread Dave Reisner
/sys/class/block contains all of our block devices, including the partitions of each parent block device, so directly check for the existance of the dev file rather than looping. Signed-off-by: Dave Reisner d...@falconindy.com --- init_functions | 14 +- 1 files changed, 5

[arch-projects] [mkinitcpio][PATCH 1/4] init: simplify disabling of hooks

2011-06-04 Thread Dave Reisner
Instead of dynamically creating variables to test against, simply remove the read permission from the hook. Signed-off-by: Dave Reisner d...@falconindy.com --- init | 21 - 1 files changed, 8 insertions(+), 13 deletions(-) diff --git a/init b/init index 1f6bc4e..67039c8

[arch-projects] [mkinitcpio][PATCH 2/4] init_functions: support {LABEL, {PART, }UUID}= syntax

2011-06-04 Thread Dave Reisner
use blkid to resolve a tag name to a block device. Signed-off-by: Dave Reisner d...@falconindy.com --- init_functions |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/init_functions b/init_functions index be3599e..f9f1742 100644 --- a/init_functions +++ b

Re: [arch-projects] [mkinitcpio][PATCH 1/4] init: simplify disabling of hooks

2011-06-04 Thread Dave Reisner
On Sat, Jun 04, 2011 at 01:17:58PM -0400, Dave Reisner wrote: Instead of dynamically creating variables to test against, simply remove the read permission from the hook. Signed-off-by: Dave Reisner d...@falconindy.com --- init | 21 - 1 files changed, 8 insertions

Re: [arch-projects] [mkinitcpio][PATCH 0/4] more low hanging froot

2011-06-04 Thread Dave Reisner
On Sat, Jun 04, 2011 at 07:34:37PM +0200, Tom Gundersen wrote: On Sat, Jun 4, 2011 at 7:17 PM, Dave Reisner d...@falconindy.com wrote: 2/4: support identifying root by tag name. There's a bit of a conflict here, though. The kernel will support mounting root when provided as PARTUUID

[arch-projects] [initscripts][PATCH] rc.sysinit: kill off VERBOSE= parameter

2011-06-04 Thread Dave Reisner
Upstream already supports this via the loglevel= parameter on the kernel cmdline, so we should support using this instead of our own homegrown solution. Signed-off-by: Dave Reisner d...@falconindy.com --- This conflicts with one of the other patches I sent 2 days ago, but I guess I'd rather see

Re: [arch-projects] [initscripts][PATCH] rc.sysinit: kill off VERBOSE= parameter

2011-06-04 Thread Dave Reisner
On Sat, Jun 04, 2011 at 08:45:25PM +0200, Tom Gundersen wrote: On Sat, Jun 4, 2011 at 8:22 PM, Dave Reisner d...@falconindy.com wrote: Upstream already supports this via the loglevel= parameter on the kernel cmdline, so we should support using this instead of our own homegrown solution

Re: [arch-projects] [initscripts][PATCH] rc.sysinit: kill off VERBOSE= parameter

2011-06-04 Thread Dave Reisner
On Sat, Jun 04, 2011 at 11:40:04PM +0200, Seblu wrote: On Sat, Jun 4, 2011 at 8:22 PM, Dave Reisner d...@falconindy.com wrote: Upstream already supports this via the loglevel= parameter on the kernel cmdline, so we should support using this instead of our own homegrown solution. Hi Dave

Re: [arch-projects] [mkinitcpio][PATCH 2/4] init_functions: support {LABEL, {PART, }UUID}= syntax

2011-06-05 Thread Dave Reisner
On Sat, Jun 04, 2011 at 01:17:59PM -0400, Dave Reisner wrote: use blkid to resolve a tag name to a block device. Signed-off-by: Dave Reisner d...@falconindy.com --- init_functions |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/init_functions b

[arch-projects] [mkinitcpio][PATCH 02/10] functions: cleanup and refactor add_binary

2011-06-06 Thread Dave Reisner
cleanup the logical flow through this function and remove a lot of cruft that would always return true, or that didn't quite make sense. Signed-off-by: Dave Reisner d...@falconindy.com --- functions | 48 +--- 1 files changed, 17 insertions(+), 31 deletions

[arch-projects] [mkinitcpio][PATCH 07/10] mkinitcpio.conf: note implicit support for lzop

2011-06-06 Thread Dave Reisner
Signed-off-by: Dave Reisner d...@falconindy.com --- mkinitcpio.conf |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/mkinitcpio.conf b/mkinitcpio.conf index 52abd56..b1fd521 100644 --- a/mkinitcpio.conf +++ b/mkinitcpio.conf @@ -60,7 +60,8 @@ HOOKS=base udev autodetect

[arch-projects] [mkinitcpio][PATCH 09/10] mkinitcpio: allow specifying kernel ver as path to image

2011-06-06 Thread Dave Reisner
update the example.preset to show this syntax as an alternative Signed-off-by: Dave Reisner d...@falconindy.com --- mkinitcpio | 29 - mkinitcpio.d/example.preset |2 +- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/mkinitcpio

Re: [arch-projects] [mkinitcpio][PATCH 06/10] use bsdcpio to create images

2011-06-06 Thread Dave Reisner
On Mon, Jun 06, 2011 at 09:13:50PM +0200, Tom Gundersen wrote: On Mon, Jun 6, 2011 at 5:30 PM, Dave Reisner d...@falconindy.com wrote: This is a departure from using gen_init_cpio, which proved to be a huge bottleneck in performance. Tests for existance change from being a call to grep

[arch-projects] [mkinitcpio][PATCH 6/9] init: load all earlymodules at once

2011-06-06 Thread Dave Reisner
Signed-off-by: Dave Reisner d...@falconindy.com --- init |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/init b/init index f63cbaf..1f6bc4e 100644 --- a/init +++ b/init @@ -46,9 +46,7 @@ if [ -n ${disablehooks} ]; then fi if [ -n ${earlymodules} ]; then -for m

[arch-projects] [mkinitcpio][PATCH 0/9] Resend of pre-kill gen-init-cpio

2011-06-06 Thread Dave Reisner
At Thomas's request, this is a resend of the patchwork that precedes the patch series to kill off gen_init_cpio. I've made some minor tweaks, the only notable one being that I've dropped support for PARTUUID= out of patch 7. It's not right to use PARTUUID as a synonym for UUID because PARTUUID

[arch-projects] [mkinitcpio][PATCH 8/9] init_functions: simplify mount case of root=/dev/*

2011-06-06 Thread Dave Reisner
/sys/class/block contains all of our block devices, including the partitions of each parent block device, so directly check for the existance of the dev file rather than looping. Signed-off-by: Dave Reisner d...@falconindy.com --- init_functions | 14 +- 1 files changed, 5

Re: [arch-projects] rc.d bash_completion

2011-06-08 Thread Dave Reisner
On Wed, Jun 08, 2011 at 01:32:36PM +0200, Andrwe wrote: Hi, I've improved the bash-completion of rc.d. I created a patch for latest git (https://github.com/seblu/arch-initscripts/tree/). The patched version extracts all actions of an initscript and adds them to the list of possible

Re: [arch-projects] rc.d bash_completion

2011-06-09 Thread Dave Reisner
On Wed, Jun 08, 2011 at 01:32:36PM +0200, Andrwe wrote: So here is a version which should satisfy your hints. Why should I always use an array? It's easier to manipulate a string using bash internals than manipulating an array. Because of that I had to remove a functionality of the script

[arch-projects] [mkinitcpio][PATCH 07/12] functions: remove add_symlink2

2011-06-09 Thread Dave Reisner
This is never used by anything in the official repos. Kill it with fire. Signed-off-by: Dave Reisner d...@falconindy.com --- functions | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/functions b/functions index dba647a..03be8cc 100644 --- a/functions +++ b

[arch-projects] [mkinitcpio][PATCH 03/12] dmesg: remove install/hook

2011-06-09 Thread Dave Reisner
This should be set via the loglevel= parameter on the kernel cmdline. Signed-off-by: Dave Reisner d...@falconindy.com --- hooks/dmesg |5 - install/dmesg | 19 --- 2 files changed, 0 insertions(+), 24 deletions(-) delete mode 100644 hooks/dmesg delete mode 100644

Re: [arch-projects] [MKINITCPIO][PATCH] Fix detection of not compressed modules

2011-06-13 Thread Dave Reisner
On Tue, Jun 14, 2011 at 12:32:22AM +0200, Sebastien Luttringer wrote: Function all_modules() doesn't correctly detect module extension. It's a one char removing patch. Signed-off-by: Sebastien Luttringer se...@seblu.net --- functions |2 +- 1 files changed, 1 insertions(+), 1

Re: [arch-projects] [initscripts] [GIT] Arch Linux initscripts repository branch master updated. 2011.06.3-31-g824567c

2011-06-19 Thread Dave Reisner
On Sun, Jun 19, 2011 at 07:09:15PM +0200, Seblu wrote: On Sun, Jun 19, 2011 at 6:59 PM, Tom Gundersen tome...@archlinux.org wrote: commit fe48fab2c2c35ccbfa3eec436d40739bc4b486da Author: Dave Reisner d...@falconindy.com Date:   Sun Jun 19 09:04:24 2011 -0400    rc.sysinit: avoid use

Re: [arch-projects] [initscripts] [PATCH] Setting Locale: fix status reporting FAIL erroneously

2011-06-25 Thread Dave Reisner
On Sat, Jun 25, 2011 at 03:17:40PM +0200, Kurt J. Bosch wrote: From: Kurt J. Bosch kjb-temp-2...@alpenjodel.de --- rc.sysinit |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 4073fb9..75f8095 100755 --- a/rc.sysinit +++

Re: [arch-projects] [initscripts] [PATCH 02/12] mtab, dmesg: show status

2011-06-25 Thread Dave Reisner
On Sat, Jun 25, 2011 at 12:15:54PM +0200, Kurt J. Bosch wrote: --- rc.sysinit | 28 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 50a8faf..225790d 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -197,12 +197,14

Re: [arch-projects] [initscripts] [PATCH 11/12] Simplify LC_* unsetting

2011-06-25 Thread Dave Reisner
On Sat, Jun 25, 2011 at 12:16:03PM +0200, Kurt J. Bosch wrote: --- functions |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/functions b/functions index 86b9602..2e4ba42 100644 --- a/functions +++ b/functions @@ -62,9 +62,7 @@ unset TERM_COLORS unset TZ

Re: [arch-projects] [initscripts] [PATCH 05/12] fsck_all, kill_everything: Clean up run_hook positions

2011-06-25 Thread Dave Reisner
On Sat, Jun 25, 2011 at 12:15:57PM +0200, Kurt J. Bosch wrote: * run postfsck hook within stat block as for prefsck * run prekillall hook out of stat blocks as for postkillall (revert obsolete e39ec61b7d642b36368d84f240b96eeda3c43b2f) --- functions |9 + 1 files changed, 5

[arch-projects] [PATCH 2/3] functions: support $BASEDIR in modprobe

2011-06-25 Thread Dave Reisner
From: Dave Reisner d...@falconindy.com Signed-off-by: Dave Reisner d...@falconindy.com --- functions |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/functions b/functions index ab0f850..ee6921c 100644 --- a/functions +++ b/functions @@ -69,7 +69,7 @@ auto_modules

[arch-projects] [PATCH 3/3] Makefile: the Makefile itself is a dep for the manpage

2011-06-25 Thread Dave Reisner
From: Dave Reisner d...@falconindy.com This will force the doc to be regenerated if there is a version bump in the Makefile. Signed-off-by: Dave Reisner d...@falconindy.com --- Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index b77e088

[arch-projects] [PATCH 1/3] install/autodetect: refactor and simplify hook

2011-06-25 Thread Dave Reisner
From: Dave Reisner d...@falconindy.com Bashify and refactor to cut back on unnecessary churn. Since our {all,checked}_modules functions always return clean module names, we can add these directly to the autodetect file instead of aggregating them during the autodetect hook and then cleansing one

Re: [arch-projects] [initscripts] [PATCH] Setting Locale: fix status reporting FAIL erroneously

2011-06-25 Thread Dave Reisner
On Sat, Jun 25, 2011 at 11:25:23PM +0200, Kurt J. Bosch wrote: Dave Reisner, 2011-06-25 16:27: On Sat, Jun 25, 2011 at 03:38:52PM +0200, Kurt J. Bosch wrote: Dave Reisner, 2011-06-25 15:27: On Sat, Jun 25, 2011 at 03:17:40PM +0200, Kurt J. Bosch wrote: From: Kurt J. Boschkjb-temp-2

Re: [arch-projects] [initscripts] [PATCH] rc.sysinit: Fix Initializing Random Seed

2011-06-26 Thread Dave Reisner
On Sun, Jun 26, 2011 at 07:18:07PM +0200, Seblu wrote: On Sun, Jun 26, 2011 at 7:08 PM, Kurt J. Bosch kjb-temp-2...@alpenjodel.de wrote: ---  rc.sysinit |    2 +-  1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index a6a5fa5..2d0fdc1 100755

[arch-projects] [mkinitcpio][PATCH 0/5] basedir fixes

2011-06-26 Thread Dave Reisner
Had some amazing help from Gerardo to polish up $BASEDIR. He made a couple of images from outside of a root and was able to boot off them. I've verified on my end that after these changes we're still able make a useable image for the simple testcase. Yay teamwork! Dave Reisner (5): functions

[arch-projects] [mkinitcpio][PATCH 1/5] functions: add missing 'command' before install

2011-06-26 Thread Dave Reisner
Without this, we hit an infinte loop and crash when a legacy 'install' function in a hook is encountered. Thanks-to: Gerardo Exequiel Pozzi vmlinuz...@yahoo.com.ar Signed-off-by: Dave Reisner dreis...@archlinux.org --- functions |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[arch-projects] [mkinitcpio][PATCH 3/5] functions: fix pathing issue with $BASEDIR

2011-06-26 Thread Dave Reisner
Thanks-to: Gerardo Exequiel Pozzi vmlinuz...@yahoo.com.ar Signed-off-by: Dave Reisner dreis...@archlinux.org --- functions |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index 54442c8..9c095bc 100644 --- a/functions +++ b/functions @@ -182,7

[arch-projects] [mkinitcpio][PATCH 5/5] mkinitcpio: fix resolution issues with RTLD

2011-06-26 Thread Dave Reisner
The _add_dir call is all wrong. The necessary paths are created by reversing the order of the _add_symlink and _add_file calls, as _add_file will take care of creating parent directories. Thanks-to: Gerardo Exequiel Pozzi vmlinuz...@yahoo.com.ar Signed-off-by: Dave Reisner dreis...@archlinux.org

Re: [arch-projects] [initscripts] [PATCH 07/18] ck_depends, ck_pidfile, do_unlock, kill_everything: add missing local statements

2011-06-27 Thread Dave Reisner
On Mon, Jun 27, 2011 at 07:11:13PM +0200, Kurt J. Bosch wrote: --- functions |4 rc.sysinit | 12 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/functions b/functions index cdb048a..0776ae4 100644 --- a/functions +++ b/functions @@ -210,6 +210,7

Re: [arch-projects] [initscripts] [PATCH 03/18] mtab, dmesg: show status

2011-06-27 Thread Dave Reisner
On Mon, Jun 27, 2011 at 07:11:09PM +0200, Kurt J. Bosch wrote: --- rc.sysinit | 28 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index c665787..0d94177 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -197,12 +197,14

[arch-projects] [PATCH 2/2] avoid touching the linker directly

2011-06-30 Thread Dave Reisner
compared to the previous implementation. Signed-off-by: Dave Reisner dreis...@archlinux.org --- This is one possible solution -- and it's basically what we relied on pre 0.7, but slightly cleaner. There _is_ a small loss of performance, but it's the price we pay. I think this is a preferrably

[arch-projects] [PATCH 1/2] functions: reduce calls to modinfo

2011-06-30 Thread Dave Reisner
Cut back to a single call to modinfo, instead of 3, which yields roughly a 30% decrease in execution time for a single run of add_module. This of course varies by module but it's an overall win. Suggested-by: Dan McGee d...@archlinux.org Signed-off-by: Dave Reisner dreis...@archlinux.org

Re: [arch-projects] [PATCH] [mkinitcpio] Fix -k /path when -b is used

2011-06-30 Thread Dave Reisner
On Thu, Jun 30, 2011 at 10:55:22PM -0400, Dave Reisner wrote: On Thu, Jun 30, 2011 at 11:47:49PM -0300, Gerardo Exequiel Pozzi wrote: Signed-off-by: Gerardo Exequiel Pozzi vmlinuz...@yahoo.com.ar --- mkinitcpio |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [arch-projects] [initscripts] [PATCH 09/11] functions: Speed up reboot/shutdown by recognizing killall5 exit code 2

2011-07-02 Thread Dave Reisner
On Sat, Jul 02, 2011 at 11:49:29PM +0200, Kurt J. Bosch wrote: killall5 returns 2 if it didn't find any processes to send to. Using this avoids sleeping longer than needed. This saves another up to six seconds of reboot/shutdown/go-single time. --- functions | 17 +++-- 1

Re: [arch-projects] [mkinitcpio] [PATCH] generate VERSION only for the tarball

2011-07-10 Thread Dave Reisner
On Sun, Jul 10, 2011 at 06:27:48PM +0200, Florian Pritz wrote: Signed-off-by: Florian Pritz bluew...@xinu.at --- Makefile | 14 +- 1 files changed, 5 insertions(+), 9 deletions(-) Ack. dave

Re: [arch-projects] [initscripts] [PATCH 20/20] Catch all errors within status blocks

2011-07-10 Thread Dave Reisner
You've got large quantities of non-functional changes in here (whitespace churn), mixed in with reverts to your previous attempts at turning everything into a single line. Can we pick a direction and stick with it? This all seems like a lot of cleverness to accomplish... well... I'm not sure.

Re: [arch-projects] [initscripts] [PATCH 11/13] functions: Fix/unify quoting

2011-07-12 Thread Dave Reisner
On Tue, Jul 12, 2011 at 10:58:36AM +0200, Kurt J. Bosch wrote: The rules should be: * Use quotes when literal strings are involved. * Use quotes when ever using a substitution which might produce blanks as a possitional parameter unless word splitting is intended. * Don't use quotes for

Re: [arch-projects] [PATCH] shutdown: add a shutdown hook

2011-07-22 Thread Dave Reisner
On Fri, Jul 22, 2011 at 03:10:58PM +0200, Tom Gundersen wrote: On Fri, Jul 22, 2011 at 2:58 PM, Tom Gundersen t...@jklm.no wrote: On Fri, Jul 22, 2011 at 1:45 PM, Tom Gundersen t...@jklm.no wrote: Enabling the shutdown hook and using systemd v31 (which is yet to be released), means that on

Re: [arch-projects] [PATCH] shutdown: add a shutdown hook

2011-07-22 Thread Dave Reisner
On Sat, Jul 23, 2011 at 01:23:41AM +0200, Tom Gundersen wrote: Enabling the shutdown hook and using systemd v31 (which is yet to be released), means that on shutdown the root will be pivoted to /run/initramfs, from where the rootfs and all its submonuts (such as /usr) are unmounted cleanly.

[arch-projects] [PATCH 00/13] minor features and bugfixes

2011-07-22 Thread Dave Reisner
This is a bunch of nitpicks, but there are a few new features thrown in. Annotations along the way... Dave Reisner (13): install/consolefont: cleanup and refactor keymap/consolefont: source rc.conf properly from $BASEDIR keymap: simplify unicode detection cleanup and bashify install hooks

[arch-projects] [PATCH 01/13] install/consolefont: cleanup and refactor

2011-07-22 Thread Dave Reisner
* Provide support for uncompressed font files as well as compressed * Avoiding using an unnecessary temp file * Support $BASEDIR * Warn when no font is found * Only add the runtime hook if a font is added Signed-off-by: Dave Reisner dreis...@archlinux.org --- install/consolefont | 52

[arch-projects] [PATCH 02/13] keymap/consolefont: source rc.conf properly from $BASEDIR

2011-07-22 Thread Dave Reisner
This is partially in response to FS#24685, which should hopefully cut back on configuration duplication on non-sysvinit systems. This does, however, also fix a bug with keymap/consolefont pulling the wrong rc.conf when BASEDIR is not '/' or unset. Signed-off-by: Dave Reisner dreis

[arch-projects] [PATCH 03/13] keymap: simplify unicode detection

2011-07-22 Thread Dave Reisner
Signed-off-by: Dave Reisner dreis...@archlinux.org --- hooks/keymap | 11 +++ install/keymap |8 +++- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/hooks/keymap b/hooks/keymap index 3593168..14f20a1 100644 --- a/hooks/keymap +++ b/hooks/keymap @@ -3,14 +3,9

[arch-projects] [PATCH 06/13] ensure local scoping of variables

2011-07-22 Thread Dave Reisner
Also make sure that simple variables are declared as null strings. Signed-off-by: Dave Reisner dreis...@archlinux.org --- functions | 12 +--- mkinitcpio |4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/functions b/functions index c7e167e..69a4aad 100644

[arch-projects] [PATCH 08/13] functions: refactor get_{base, dir}name

2011-07-22 Thread Dave Reisner
From: Dave Reisner d...@falconindy.com Make sure these are completely safe for user input. Use the same three step process in both cases: 1) Strip any trailing slash 2) Trim the string according to base/dir request 3) Print the result, defaulting to / if step 2 yielded an empty string Signed

[arch-projects] [PATCH 09/13] init: support breaks before and after mounting root

2011-07-22 Thread Dave Reisner
Add in 'premount' and 'postmount' as trigger conditions, but also leave in the old 'y' value as a synonym for premount. Signed-off-by: Dave Reisner dreis...@archlinux.org --- I'm not sold on the location of the post-mount break. Do we perhaps want to do this absolutely last before we exec

[arch-projects] [PATCH 10/13] mkinitcpio: simplify setting of SKIPHOOKS

2011-07-22 Thread Dave Reisner
Signed-off-by: Dave Reisner dreis...@archlinux.org --- mkinitcpio |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 82faaaf..dd67030 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -108,12 +108,7 @@ while getopts ':c:k:sb:g:p:m:nvH:LMhS:t:z

[arch-projects] [PATCH 12/13] init: allow /run to be mounted with exec perms

2011-07-22 Thread Dave Reisner
We'll need this to do some shutdown magic of pivoting and umounting root on shutdown. This is already done in initscripts. Signed-off-by: Dave Reisner dreis...@archlinux.org --- init |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/init b/init index a0e082e..ff4917a

[arch-projects] [PATCH 13/13] add -A option for adding hooks during build

2011-07-22 Thread Dave Reisner
Signed-off-by: Dave Reisner dreis...@archlinux.org --- I can see this being useful for one-off images made outside the context of a preset, but this might also just be some oddball feature that never gets used. mkinitcpio |8 +--- mkinitcpio.5.txt |5 + 2 files changed, 10

[arch-projects] [initscripts][PATCH] arch-tmpfiles: add new script to handle volatile file control

2011-07-23 Thread Dave Reisner
control, since we still check for the possibility of these directories being symlinks and adjust accordingly. Signed-off-by: Dave Reisner dreis...@archlinux.org --- Tom and I talked about this tonight and I volunteered to hack it up. It's a simple but fairly substantial framework for handling

[arch-projects] [mkinitcpio][PATCH] tmpfiles.conf: fix improper creation of /var/run/utmp

2011-07-25 Thread Dave Reisner
Signed-off-by: Dave Reisner dreis...@archlinux.org --- tmpfiles.conf |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tmpfiles.conf b/tmpfiles.conf index f7db5a0..7dd1358 100644 --- a/tmpfiles.conf +++ b/tmpfiles.conf @@ -11,7 +11,7 @@ d /tmp/.XIM-unix1777 root root

Re: [arch-projects] [mkinitcpio][PATCH] tmpfiles.conf: fix improper creation of /var/run/utmp

2011-07-25 Thread Dave Reisner
On Tue, Jul 26, 2011 at 12:25:27AM -0400, Dave Reisner wrote: Signed-off-by: Dave Reisner dreis...@archlinux.org --- tmpfiles.conf |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tmpfiles.conf b/tmpfiles.conf index f7db5a0..7dd1358 100644 --- a/tmpfiles.conf

[arch-projects] [initscripts][PATCH 2/2] rc.d: allow specific daemons to be listed

2011-07-31 Thread Dave Reisner
We still default to listing all daemons if none are specified. Signed-off-by: Dave Reisner dreis...@archlinux.org --- rc.d |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/rc.d b/rc.d index a7b214e..bfc4719 100755 --- a/rc.d +++ b/rc.d @@ -33,7 +33,12 @@ case $1

Re: [arch-projects] [initscripts][PATCH 2/2] rc.d: allow specific daemons to be listed

2011-07-31 Thread Dave Reisner
On Sun, Jul 31, 2011 at 03:04:05PM +0200, Lukas Fleischer wrote: On Sun, Jul 31, 2011 at 08:35:01AM -0400, Dave Reisner wrote: We still default to listing all daemons if none are specified. Signed-off-by: Dave Reisner dreis...@archlinux.org --- rc.d |7 ++- 1 files changed

Re: [arch-projects] [mkinitcpio] mounting /usr from the initrd

2011-08-02 Thread Dave Reisner
On Tue, Aug 02, 2011 at 05:10:48PM +0200, Tom Gundersen wrote: Hi guys, I have been thinking about sorting out /usr being a separate mountpoint. Mainly because I keep getting bug reports that turn out to be caused by this. The current status is that we move some tools from /usr to / in

Re: [arch-projects] [mkinitcpio] mounting /usr from the initrd

2011-08-02 Thread Dave Reisner
On Tue, Aug 02, 2011 at 05:40:06PM +0200, Thomas Bächler wrote: Am 02.08.2011 17:10, schrieb Tom Gundersen: This website created by the systemd folks sums it up nicely (just replace systemd with initscripts everywhere):

Re: [arch-projects] [devtools] [PATCH 2/3] commitpkg: Merge version control checks

2011-08-09 Thread Dave Reisner
On Tue, Aug 09, 2011 at 10:53:44PM +0200, Lukas Fleischer wrote: Local source files, as well as install and changelog files used to have separate version control checks. Move them into a single loop. Signed-off-by: Lukas Fleischer archli...@cryptocrack.de --- commitpkg | 16

Re: [arch-projects] [devtools] [PATCH] commitpkg: Fix leading whitespace in commit messages

2011-08-15 Thread Dave Reisner
On Mon, Aug 15, 2011 at 03:33:28PM +0200, Lukas Fleischer wrote: On Mon, Aug 15, 2011 at 03:27:27PM +0200, Lukas Fleischer wrote: On Mon, Aug 15, 2011 at 03:12:45PM +0200, Pierre Schmitz wrote: On Mon, 15 Aug 2011 09:47:16 +0200, Lukas Fleischer wrote: Commit

[arch-projects] [devtools][PATCH 1/6] commitpkg: declare rsyncopts as an array

2011-08-16 Thread Dave Reisner
From: Dave Reisner d...@falconindy.com Signed-off-by: Dave Reisner d...@falconindy.com --- commitpkg |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commitpkg b/commitpkg index bdc1fd6..d37babf 100755 --- a/commitpkg +++ b/commitpkg @@ -97,9 +97,9 @@ for i

[arch-projects] [devtools][PATCH 4/6] archrelease: call svn rm only once

2011-08-16 Thread Dave Reisner
Signed-off-by: Dave Reisner dreis...@archlinux.org --- I'll cut the person who wants to commit an odd filename to svn (e.g. something with whitespaces), but archrelease shouldn't care about this. archrelease |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git

[arch-projects] [devtools][PATCH 5/6] archrelease: use bashier syntax

2011-08-16 Thread Dave Reisner
Signed-off-by: Dave Reisner dreis...@archlinux.org --- Less forking, more bashing. archrelease | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/archrelease b/archrelease index 20ccd50..24e950c 100755 --- a/archrelease +++ b/archrelease @@ -5,48 +5,50

[arch-projects] [devtools][PATCH 6/6] archrelease: declare known_files as an array

2011-08-16 Thread Dave Reisner
Signed-off-by: Dave Reisner dreis...@archlinux.org --- archrelease |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archrelease b/archrelease index 24e950c..af75b8f 100755 --- a/archrelease +++ b/archrelease @@ -46,13 +46,13 @@ if [[ ! -d repos/$1

  1   2   3   4   5   6   >