/srv/irclogs.ubuntu.com/2007/01/07/#upstart.txt

=== mbiebl [n=michael@e180126205.adsl.alicedsl.de] has joined #upstart
=== hunger_ [n=tobias@p54A71F89.dip0.t-ipconnect.de] has joined #upstart
=== mbiebl [n=michael@e180126205.adsl.alicedsl.de] has joined #upstart
=== joh6nn [n=joh6nn@24-177-251-138.dhcp.nwtn.ct.charter.com] has joined #upstart
joh6nni'm trying to add a script to my boot process to turn off dma on one of my hdds (long story), and i'm very clearly going about it the wrong way, but i'm not sure where i'm falling down06:21
joh6nni've looked through the wiki and the getting-started page, but i'm guessing that's only taught me enough to be dangerous, not enough to get this working06:21
wasabi__/etc/rc.local =)06:41
joh6nnjust stuff it in there and it should work?06:43
wasabi__uh huh06:44
joh6nnthanks, i'll give that a shot06:44
joh6nnalternatively, is there a better way to disable dma for a drive at boot?06:45
joh6nner.  wasabi__, i must be missing something.  rc.local is a basically no-op script.  were you just suggesting i shove my one line in there, since it's there anyway?07:12
wasabi__uh huh07:12
wasabi__it's run during boot. it's for local stuff... to run during boot07:13
wasabi__this has nothing to do with upstart, btw. =)07:13
joh6nnyeah, normally, that'd be a fair enough answer to the question.  unfortunately, i'm needing to set /dev/hdd to dma = off round about the time that the init-top scripts start getting run (possibly sooner; i may be mis-remembering at that point)07:14
wasabi__that would be in the initramfs07:15
joh6nnyeah, that was where i tried to add it first.  i stuffed my own little script in there in init-top, but there's seemingly more to it than just adding new scripts to the directory; it didn't appear to run07:16
wasabi__have to rebuild hte initramfs07:17
wasabi__dpkg-reconfigure the kernel package07:17
wasabi__also, i dont think your drives will exists in init-top07:18
wasabi__maybe. ;)07:18
joh6nnthat can't be right; i need to reconfigure the kernel package just to add a new boot script?07:18
wasabi__uh huh07:20
wasabi__that's hte initramfs07:20
wasabi__initramfs != boot scripts exactly.07:20
joh6nnok, well, then i'm clearly going about this the wrong way.  there's gotta be a better way of changing this setting then07:22
wasabi__i'd like to know why you have to change it07:23
joh6nnif it i don't, it hangs and doesn't finish booting.  at a guess, the BIOS in the box isn't very good, and isn't properly handling the dma settings for the drive07:24
wasabi__hmm.07:24
wasabi__well, how far does the boot get?07:25
joh6nngets to scanning to see what IDE devices are connected, and hangs at /dev/hdd07:25
joh6nni've tried setting it in /etc/hdparm.conf, too, but that doesn't have any visible effect07:26
wasabi__It's going to be a bit hard to tell the kernel not to use dma on a device before the kernel hsa discovered hte device.07:26
joh6nnyeah, i'm grasping at straws, really07:29
wasabi__also, im not sure if the kernel even enables dma automatically in the initramfs or before07:29
joh6nni've tried setting it with hdparm, and then rebooting, but that doesn't work.  i'm guessing it's not working because the BIOS sees that the drive supports DMA, and turns it back on07:29
wasabi__hdparm affects transient kernel settings.07:30
wasabi__it doesn't save07:30
joh6nnah07:30
joh6nnwould be nice if the man made that clearer, eh? ; )07:31
wasabi__well, anything that "saved" in linux would have to have someplace to 'save it'07:33
wasabi__hdparm.conf is that07:33
wasabi__off to bed. sorry i can't help ya much07:35
wasabi__night07:35
=== j_ack [n=rudi@p508DBB33.dip0.t-ipconnect.de] has joined #upstart
=== joh6nn [n=joh6nn@24-177-251-138.dhcp.nwtn.ct.charter.com] has left #upstart []
=== juergbi [n=juerg@80-219-19-246.dclient.hispeed.ch] has joined #upstart
=== jonib1 [n=jonas@ua-83-227-144-18.cust.bredbandsbolaget.se] has joined #upstart
=== Md [i=md@freenode/staff/md] has joined #upstart
=== Amaranth_ [n=travis@ip72-198-200-109.om.om.cox.net] has joined #upstart
=== Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart
Keybukrandom thought12:34
Keybukthe job definition parser currently "ignores" parser errors and just outputs warnings12:34
Keybukshould it abort parsing instead?12:34
AlexExtremeI would think so12:34
AlexExtremebecause if there is an error, it could cause the rest of it to parse incorrectly and could cause problems12:35
Keybukyeah, especially the unknown stanza bit ...12:35
Keybukned script12:35
Keybuk  exec foo12:35
Keybukend block12:35
Keybukwill give you12:35
Keybukfoo:1: ignored unknown stanza: ned12:35
Keybukfoo:2: ignored unknown stanza: end12:35
Keybukbut set the job's exec to be "foo" because exec is a valid stanza12:36
AlexExtremeyep12:36
=== hunger_ [n=tobias@p54A71F89.dip0.t-ipconnect.de] has joined #upstart
=== j_ack [n=rudi@p508DBC6D.dip0.t-ipconnect.de] has joined #upstart
=== rwall [n=richard@82-69-197-190.dsl.in-addr.zen.co.uk] has joined #upstart
=== rwall [n=richard@82-69-197-190.dsl.in-addr.zen.co.uk] has left #upstart []
=== wasabi__ [n=wasabi@cpe-76-184-96-5.tx.res.rr.com] has joined #upstart
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
=== j_ack [n=rudi@p508DBC6D.dip0.t-ipconnect.de] has joined #upstart
=== Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
=== mbiebl [n=michael@e180124027.adsl.alicedsl.de] has joined #upstart

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!