twb | So I need some generic help with initramfs-tools. | 06:54 |
---|---|---|
twb | In 8.04 I placed an extra script in /usr/share/initramfs-tools/scripts/casper-bottom/13home, which adds a line to /root/etc/fstab (prior to pivot_root). | 06:55 |
twb | When I do the same in 10.04, and run "update-initramfs -u" to regenerate the ramdisk, I see that 13home is being executed *at update-initramfs time*. That is insane, and I don't understand why it's happening. | 06:55 |
twb | OK, I think I worked it out | 07:11 |
twb | It seems that nowadays update-initramfs calls *every script* at generate time, with a single argument "prereq". | 07:12 |
twb | And all the scripts separately have a check "if $1 is prereq, exit immediately". | 07:12 |
cjwatson | twb: yup. speeds up boot quite a bit, but it did require every script to be changed. | 11:49 |
cjwatson | doing the ordering at boot time with relatively few tools was slow | 11:49 |
twb | Hang on; are you saying that the files in casper-bottom/* are reordered, a la insserv? | 11:50 |
cjwatson | yes, initramfs-tools does that for everything - casper-bottom/* happened to be already ordered by way of numbers in the filenames, but not everything was | 11:50 |
twb | I see. | 11:51 |
twb | So my casper-bottom/foo scripts should emit something like "X-Start-Before: pivot_root" and "Depends: rootfs" ? | 11:52 |
twb | Or: where's the best place to read documentation about this | 11:53 |
cjwatson | no, it isn't *actually* insserv | 12:01 |
cjwatson | you can just have them exit immediately when called with the 'prereqs' argument, and then filename order will be used | 12:01 |
cjwatson | otherwise, echo your script's dependencies to stdout when called with 'prereqs', and then exit immediately | 12:02 |
cjwatson | that's about as far as it goes | 12:02 |
cjwatson | /usr/share/doc/initramfs-tools/examples/example_script documents it | 12:02 |
cjwatson | (and _hook) | 12:03 |
twb | AFAICT nothing in my system has a non-empty PREREQS="" lst | 12:11 |
twb | *list | 12:11 |
cjwatson | you're not running lucid then? | 12:22 |
cjwatson | $ grep ^PREREQ /usr/share/initramfs-tools/scripts/init-top/console_setup | 12:22 |
cjwatson | PREREQ="framebuffer" | 12:22 |
cjwatson | $ grep ^PREREQ /usr/share/initramfs-tools/scripts/init-top/udev | 12:22 |
cjwatson | PREREQ="all_generic_ide blacklist" | 12:22 |
cjwatson | etc. | 12:22 |
cjwatson | although casper doesn't use it, we use it fairly extensively in initramfs-tools itself | 12:23 |
twb | I was looking at Sid | 12:24 |
twb | It is still synchronous? | 12:25 |
cjwatson | unstable's initramfs-tools doesn't appear to use it, though it has the facility (merged from Ubuntu) | 12:25 |
cjwatson | yes, it's still synchronous | 12:25 |
twb | OK, thanks | 12:25 |
CIA-4 | debian-installer: cjwatson * r1318 ubuntu/ (7 files in 2 dirs): Move to 2.6.35-4 kernels. | 12:34 |
CIA-4 | debian-installer: cjwatson * r1319 ubuntu/debian/changelog: releasing version 20100211ubuntu8 | 12:35 |
CIA-4 | debian-installer: cjwatson * r1320 ubuntu/ (3 files in 3 dirs): Argh. It'\''s console-setup-udeb, not console-setup. | 14:36 |
=== bladernr is now known as bladernr-afk | ||
=== bladernr-afk is now known as bladernr | ||
=== bladernr is now known as bladernr_ | ||
=== JanC_ is now known as JanC | ||
CIA-4 | partman-basicfilesystems: cjwatson * r585 ubuntu/ (debian/changelog fstab.d/basic): Don't add umask=007,gid=46 for EFI System Partitions. | 19:18 |
CIA-4 | partman-basicfilesystems: cjwatson * r586 ubuntu/debian/changelog: releasing version 63ubuntu5 | 19:19 |
EtienneG | repost of a question send to #ubuntu-devel: is there any way we can force installation of a restricted driver at install time, through preseeding? Would invoking "jockey-text -e nvidia" as a late_command be sufficient? | 20:46 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!