[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#378344: initramfs-tools: Should be able to force root device for update-initramfs



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: initramfs-tools
Version: 0.68b
Severity: wishlist

Grub and lilo allow one to set kernel options to force a particular boot
device, and for good reasons.  Unfortunately, update-initramfs does not
sport such a possibility.

E.g., let us assume I bought a new hard disk drive and want to port an
existing /dev/hd?? - System to LVM. It is easy enough to copy the whole
thing to a new filesystem, that lives on LVM on the new drive. But: How do
I come up with that initrd, that boots from LVM on the new disk?

It can be done. One needs to dig down into the internals of mkinitramfs
(disregarding the warning in the manual page that this is not needed for a
local box).

I suggest that this particular thing should be easier. It should be
possible to force a particular boot device via two ways: A "root=" line in
/etc/initramfs-tools/initramfs.conf, and a "-r" option to update-initramfs
(that ought to override the "root=" line).

In passing, either of these would have also helped me working around bug
378332 more elegantly, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378332 .

Regards, and thank you for providing fine software,

Andreas
- --
andreas.krueger@famsik.de
PGP-Schlüssel 0xA207E340 (http://www.pca.dfn.de/dfnpca/pgpkserv/)
Fingerprint B46B C7BA FFEE AD41 35DD  49C3 9D6A E529 A207 E340
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEuPFPnWrlKaIH40ARAjkUAJ9MqvP9fatBdaMZrVevnmyUcGswiQCcD/h+
nUPVCIlLy8+LRLH3vNeBVyY=
=v2cX
-----END PGP SIGNATURE-----



Reply to: