Package: initramfs-tools
Version: 0.92o
Severity: normal

At the moment the order boot scripts are executed in depends solely on
'prereqs' that are - at least in the scripts on my system - rather
static. While the admin can *add* scripts under /etc/initramfs-tools
there is no elegant way to *override* scripts in
/usr/share/initramfs-tools (or at least their prereqs). Sure, I could
divert and edit them, but ...

Now, why is the prereqs-mechanism not sufficent? An example:

a) dm-crypt on lvm2 on md,
b) lvm2 on dm-crypt on md,
c) lvm2 on md on dm-crypt and even
d) md on lvm2

are all valid configurations, depending on the situation. That is, the
ordering of these layers (and consequently the exec order of the
corresponding scripts) is important but it cannot be assumed to be the
same across all possible systems.

Status: a works, so does b (but at first glance I can't see why),
while c is broken. While I haven't tested d), *someone* is bound to need
exactly such a setup and I don't see a reason to disallow it.

Is it possible within the current initramfs-tools framework to allow
a) through d) without ugly custom hacks?

Maybe it could be extended to honor an /etc/initramfs-tools/order file
to allow the admin to hardcode execution order? Or a dirctory
containing /etc/rc?.d-style symlinks?
Perhaps just specify that /usr/share/.../xxx is only executed if
/etc/.../xxx doesn't exist?
Or as a last resort run all scripts again in a different order if no
rootfs is found the first time 'round :-P

Thanks,

C.


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-bpo.2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  cpio                      2.9-13         GNU cpio -- a program to manage ar
ii  findutils                 4.4.0-2        utilities for finding files--find,
ii  klibc-utils               1.5.12-2       small utilities built with klibc f
ii  module-init-tools         3.4-1          tools for managing Linux kernel mo
ii  udev                      0.125-7+lenny3 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox                       1:1.10.2-2 Tiny utilities for small and embed

initramfs-tools suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to